Community
Inventor Forum
Welcome to Autodesk’s Inventor Forums. Share your knowledge, ask questions, and explore popular Inventor topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

How to add layers for flat pattern??

9 REPLIES 9
SOLVED
Reply
Message 1 of 10
Jefkee
1034 Views, 9 Replies

How to add layers for flat pattern??

Hi,

 

How do i add/edit layers for flat pattern save copy as?

 

Layers Question.png

Inventor 2013
9 REPLIES 9
Message 2 of 10
coreyparks
in reply to: Jefkee

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.

Please mark this response "Accept as solution" if it answers your question.
-------------------------------------------------------------------------------------
Corey Parks
Message 3 of 10
Jefkee
in reply to: coreyparks

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")

 

 

Inventor 2013
Message 4 of 10
coreyparks
in reply to: Jefkee

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.

Please mark this response "Accept as solution" if it answers your question.
-------------------------------------------------------------------------------------
Corey Parks
Message 5 of 10
Jefkee
in reply to: coreyparks

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?

 

Inventor 2013
Message 6 of 10
-niels-
in reply to: Jefkee

From the programming help:

DXF_export_api.png

 

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

Message 7 of 10
coreyparks
in reply to: -niels-

He's way quicker than me, lol.  I remember seeing that but couldn't find it, thanks.

Please mark this response "Accept as solution" if it answers your question.
-------------------------------------------------------------------------------------
Corey Parks
Message 8 of 10
Jefkee
in reply to: coreyparks

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?

Inventor 2013
Message 9 of 10
-niels-
in reply to: Jefkee

The only difference from the example on the help page i can see is the use of " ; " as seperator in the color definition.
Try 0;255;255 instead of 0,255,255 and see if that works.

Niels van der Veer
Inventor professional user & 3DS Max enthusiast
Vault professional user/manager
The Netherlands

Message 10 of 10
Jefkee
in reply to: -niels-

Thanks! works like a charm.

Inventor 2013

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report