ImportWithOptions

All topics about specific development with COM interface, LIP language, API in VB, ...

Moderators: remi77, jacs, Daniel

Post Reply
cam
Master Corporal
Master Corporal
Posts: 38
Joined: Fri Oct 02, 2009 9:46 am
TopSolid Module: TopSolid'Cam
TopSolid Version: 7.7
Location: Germany

ImportWithOptions

Post by cam » Tue Oct 25, 2016 2:36 pm

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 ??
Greetings
Chris

Mark Oostveen
Chief
Chief
Posts: 107
Joined: Mon Mar 26, 2007 9:40 am
TopSolid Module: TopSolid'Cam
TopSolid Version: 7.7
Location: The netherlands
Contact:

Re: ImportWithOptions

Post by Mark Oostveen » Fri Oct 28, 2016 7:07 pm

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.

cam
Master Corporal
Master Corporal
Posts: 38
Joined: Fri Oct 02, 2009 9:46 am
TopSolid Module: TopSolid'Cam
TopSolid Version: 7.7
Location: Germany

Re: ImportWithOptions

Post by cam » Wed Nov 02, 2016 7:07 am

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
Greetings
Chris

User avatar
JuP
Master Chief
Master Chief
Posts: 121
Joined: Tue Sep 09, 2014 5:45 pm

Re: ImportWithOptions

Post by JuP » Fri Nov 04, 2016 7:03 am

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.
Julien . P
Youtube
Grabcad

cam
Master Corporal
Master Corporal
Posts: 38
Joined: Fri Oct 02, 2009 9:46 am
TopSolid Module: TopSolid'Cam
TopSolid Version: 7.7
Location: Germany

Re: ImportWithOptions

Post by cam » Mon Nov 07, 2016 5:57 pm

Hi, unfortunately the DXF importer has no such options.


https://drive.google.com/file/d/0B_ZZGb ... sp=sharing
Greetings
Chris

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest