Page 1 of 1
ImportWithOptions
Posted: Tue Oct 25, 2016 2:36 pm
by cam
Hi folks,
I try to get import a 'DXF' file into my project by Automation work.
How can I tell this methode to import the file as '2D Draft' ?
At the moment I get the file imported as Part. And the content of the part is empty.
Any idea ??
Re: ImportWithOptions
Posted: Fri Oct 28, 2016 7:07 pm
by Mark Oostveen
There is a getimporteroptions if I am wright. You can read and write these option before the import. Maybe there is a option available to switch to 2D document equivalent to the option in the gui.
Regards
Mark.
Re: ImportWithOptions
Posted: Wed Nov 02, 2016 7:07 am
by cam
Hi Mark,
Thank you for your answer.
Unfortunately, I have already tried this methode, and there is no option to define the import as 2D document.
And.....
Is there a possibility to define "all" layers to import in the importer options ?
Then it will be able to have elements on the imported part.
Greetings
Chris
Re: ImportWithOptions
Posted: Fri Nov 04, 2016 7:03 am
by JuP
cam wrote:Hi Mark,
Thank you for your answer.
Unfortunately, I have already tried this methode, and there is no option to define the import as 2D document.
And.....
Is there a possibility to define "all" layers to import in the importer options ?
Then it will be able to have elements on the imported part.
Greetings
Chris
Hi!
In the importer options you can define KeyValues, there are some keys which contains "_EXTENSION", did you check if you find something like that? I know there are "ASSEMBLY_DOCUMENT_EXTENSION" and "PART_DOCUMENT_EXTENSION" (you have just to define the extension in the value) but I used to use just stp, x_t importers...
If this keys doesn't exists for dxf importer you can ask an enhancement.
Re: ImportWithOptions
Posted: Mon Nov 07, 2016 5:57 pm
by cam
Hi, unfortunately the DXF importer has no such options.
https://drive.google.com/file/d/0B_ZZGb ... sp=sharing