Community
Inventor Programming - iLogic, Macros, AddIns & Apprentice
Inventor iLogic, Macros, AddIns & Apprentice Forum. Share your knowledge, ask questions, and explore popular Inventor topics related to programming, creating add-ins, macros, working with the API or creating iLogic tools.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Export dxf file through API with colored layers

3 REPLIES 3
SOLVED
Reply
Message 1 of 4
CAD_CAM_MAN
1902 Views, 3 Replies

Export dxf file through API with colored layers

I am trying to export dxf files through the API with the FeatureProfilesLayer color set to yellow but cannot seem to get the syntax correct or maybe missing something else. In any case it is not working. Can somebody show the correct format or point me in the right direction? Code below...

 

sOut = "FLAT PATTERN DXF?AcadVersion=R12&" &
               "OuterProfileLayer=CUT&" &
               "InteriorProfilesLayer=CUT&" &
               "FeatureProfilesLayer=ETCH&" &
               "FeatureProfilesLayerColor=255;255;0" &
               "InvisibleLayers=IV_ARC_CENTERS;IV_TOOL_CENTER;IV_TOOL_CENTER_DOWN;IV_UNCONSUMED_SKETCHES"
Tags (3)
3 REPLIES 3
Message 2 of 4
mslosar
in reply to: CAD_CAM_MAN

I set a color for our ETCH layer and a few other things with mine:

 

 Dim sOut As String
        sOut = "FLAT PATTERN DXF?AcadVersion=2010&" &
                            "OuterProfileLayer=0&" &
                            "InteriorProfilesLayer=0&" &
                            "BendUpLayerColor=255;255;0&" &
                            "BendUpLayerLineType=37641&" &
                            "BendDownLayerColor=255;255;0" &
                            "BendDownLayerLineType=37641&" &
                            "BendUpLayer=Etch&" &
                            "BendDownLayer=Etch&" &
                            "BendLayer=Etch&" &
                            "FeatureProfilesUpLayer=Etch&" &
                            "FeatureProfilesUpLayerColor=255;255;0&" &
                            "FeatureProfilesUpLayerLineType=37641&" &
                            "FeatureProfilesDownLayer=Etch&" &
                            "FeatureProfilesDownLayerColor=255;255;0&" &
                            "FeatureProfilesDownLayerLineType=37641&" &
                            "UnconsumedSketchesLayer=Etch&" &
                            "UnconsumedSketchesLayerColor=255;255;0&" &
                            "UnconsumedSketchesLayerLineType=37641&" &
                            "InvisibleLayers=IV_ARC_CENTERS;IV_TANGENT" &
                            "SimplifySplines=False"
Message 3 of 4
CAD_CAM_MAN
in reply to: mslosar

I was missing an ampersand within the quotes on this line... "FeatureProfilesLayerColor=255;255;0" &

 

And needed to add "FeatureProfilesUpLayerColor=255;255;0&" & "FeatureProfilesDownLayerColor=255;255;0&" &

 

Thank you very much for your post!!!

Message 4 of 4
mslosar
in reply to: CAD_CAM_MAN

No problem. 

Saw your post and remembered doing this, having the same problem, and think the answer was kinda dumb 🙂 Glad i knew where it was.

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

Post to forums  

Autodesk Design & Make Report