ImportWithOptions

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

Moderators: remi77, jacs, Daniel

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

ImportWithOptions

Unread post 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 ??
Greetings
Chris
Mark Oostveen
Chief
Chief
Posts: 107
Joined: Mon Mar 26, 2007 9:40 am
TopSolid Module: TopSolid'Cam
TopSolid Version: 6.26
Location: The netherlands
Contact:

Re: ImportWithOptions

Unread post 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.
cam
Master Corporal
Master Corporal
Posts: 39
Joined: Fri Oct 02, 2009 9:46 am
TopSolid Module: TopSolid'Cam
TopSolid Version: 7.8
Location: Germany

Re: ImportWithOptions

Unread post 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
Greetings
Chris
User avatar
JuP
Major
Major
Posts: 169
Joined: Tue Sep 09, 2014 5:45 pm
Answers: 6
TopSolid Module: TopSolid'Steel
TopSolid Version: 7.14

Re: ImportWithOptions

Unread post 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.
Julien POIROT
TopSolid'Steel Product Manager
Youtube
GrabCad
Facebook
cam
Master Corporal
Master Corporal
Posts: 39
Joined: Fri Oct 02, 2009 9:46 am
TopSolid Module: TopSolid'Cam
TopSolid Version: 7.8
Location: Germany

Re: ImportWithOptions

Unread post by cam »

Hi, unfortunately the DXF importer has no such options.


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