You can't add anymore than what you see as all of the different entities are already mapped to a layer. You can simply rename the layer names to something you want when you get to this dialog box. When you get it setup the way you want simply save the configuration to somewhere safe. I believe the program will default to the last used configuration on all subsequent saves.
Not quite the answer i hoped for.
How do i then choose a descent Layer trough the DataIO system for export?
' If the file location does not exist, then create it If(Not System.IO.Directory.Exists(file_loc)) Then System.IO.Directory.CreateDirectory(file_loc) End If ' Get the active document. This assumes it is a part document. Dim oDoc As PartDocument oDoc = ThisApplication.ActiveDocument ' Get the DataIO object. Dim oDataIO As DataIO oDataIO = oDoc.ComponentDefinition.DataIO ' Build the string that defines the format of the DXF file. Dim sOut As String sOut = "FLAT PATTERN DXF?AcadVersion=R12&OuterProfileLayer=Outer&BendLayer=IV_BEND" ' Create the DXF file. oDataIO.WriteDataToFile(sOut, file_loc & ThisDoc.FileName(False) & ".dxf")
What is it that you are trying to do? Export everything to one layer? Only export certain layers? Rename exported layers to names that are better aligned with your processes? I might, and I stress might, be able to help if I knew your goal here.
Ok thanks.
What i am trying to do is following.
I want to create a .dxf from certain sheet-metal parts by i-logic rule.
If a parameter is 1 Then
Export flatpattern to .dxf
Else
Do nothing
End If
I can export via API rule, but i cannot set the right settings for my export. Every layer in my .dxf is black and the same thickness. (the settings as they are on my image above)
So my question is, can i edit these layers to a proper color / thickness / line style? Or how can i set them right via rule?
From the programming help:
I think you need to use the options i highlighted for that.
Niels van der Veer
Inventor professional user & 3DS Max enthusiast
Vault professional user/manager
The Netherlands
He's way quicker than me, lol. I remember seeing that but couldn't find it, thanks.
Hmmmppffff i don't seem to get..
How does a line look like then?
sOut = "FLAT PATTERN DXF?AcadVersion=R12&OuterProfileLayer=IV_INTERIOR_PROFILE&OuterProfileLayerColor=0,255,255"
This does not change the colour at all. whats wrong?
Niels van der Veer
Inventor professional user & 3DS Max enthusiast
Vault professional user/manager
The Netherlands
Can't find what you're looking for? Ask the community or share your knowledge.