cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

.dtl file

Regular Member

.dtl file

Is there a way to read in a drawing dtl file using JLink (sans macro
execution)? I feel like I'm just not seeing it and it's there in one of
the enumeration constants (I also didn't see it in a drawing or other
method).



Any help is most appreciated.



Brian Krieger

2 REPLIES 2

RE: .dtl file


> Is there a way to read in a drawing dtl file using JLink (sans macro
> execution)? I feel like I'm just not seeing it and it's there in one of
> the enumeration constants (I also didn't see it in a drawing or other
> method).


I would check out Import() in pfcModel and DWGSetupImportInstructions.
Most likely, you'll need to do something more or less like this:

String fileName = "something.dtl";
DWGSetupImportInstructions inst = pfcModel.DWGSetupImportInstructions_Create();
model.Import(fileName, inst);

Where "model" is the object representing your drawing. The file name should
include the full path to the .dtl file if it's in another folder.



Marc
--
Marc Mettes
-
Visit My CAD/PDM AutomationBlog
Or, Subscribe to My CAD/PDM Automation Blog by Email





.dtl file

Bingo, Marc! Great answer! Like I said, I figured I was missing it.
Right there in the documentation.



A note about it, though. It appears there is a character limit on the
detail file name used in the import instructions. No biggie as I just
copy the file locally and then get rid of it, but still a limitation.
I'm going to try a couple of other tricks to see if I can get it to
accept a path'd name.



Thanks again, Marc, y'all are great!



BK


Announcements