Welcome everyone,
I have a question that would make life a little easier.
I'm working on this project and basically the goal of this project is to design something in inventor and plot this design from 3D to 2D.
After I have established this 2D drawing the idea was to export this file to AutoCAD.
Unfortunately I had hoped I could give some part a layer as a part and that the 2D drawing when plotted would already be constructed of a number of layers.
I know that in the template environment you can give lines a layer, but whereas this costs a lot of effort and makes room for mistakes.
My question is: if someone knows if there is any option in Inventor to give parts a layer that will be included in the template?
Thank you all for reading my question and taking the effort of thinking of a solution!
Solved! Go to Solution.
Solved by blair. Go to Solution.
Solved by Gokhan_Kaya. Go to Solution.
Solved by Gokhan_Kaya. Go to Solution.
Solved by mcgyvr. Go to Solution.
Inventor really doesn't use or need layers like Autocad does so it puts everything on one..
You can move parts to their own layer manually or there is some ilogic code around to assign parts to specific layers based on their appearance,etc.. or something like that..
But out of the box there isn't a setting to put each part on its own layer.
Here is how you move them manually..
If this is just something you need a few times (for one project) then just do it manually..
Hi
I wrote a program for assign layer and color by part or assembly
you can use this program
this program language is Turkish You can translate use by google translate
Gökhan Kaya
Tehcnical Manager
Autodesk Inventor Certified Professional 2015
LinkedIn
MSI WS 60 i7 Quadro M2000M
Hi You can ilogic code by Ericflick
this ilogic code create layer by material
if you want part name also you must find below code
Dim materialName = partDoc.ComponentDefinition.Material.Name
and change
Dim materialName = partDoc.DisplayName
also create layer parn name by ilogic codes
Gökhan Kaya
Tehcnical Manager
Autodesk Inventor Certified Professional 2015
LinkedIn
MSI WS 60 i7 Quadro M2000M
Other that iLogic, as posted, this video gives you an idea of what really gets placed from the IAM file into a IDW.
Thank you all so much!
This has saved me so much time and at the same time has enriched me with more knowledge.
I really appreciate that you all have taken the time and put in the effort to give an answer to my question.
One more time thank you all very much!
Hello there Mr. Gokhan.
First of all congratulations on your work,
Since I am somewhat new to ilogic and not a native programmer, I tried opening your attached file but I'm not aware of which application to use - i haven't programmed on VB.
I am looking to change via ilogic the layer of some parts and some subassemblies (by name) from a section view of one main assembly. Can you help me with this?
In the other link to that post to the forum the poster says the link is incomplete, and in your code ir attributes a color as well, right? I have set the desired layer to have the color I need already.
Thank you very much.
Hi there,
It seems that it is an .exe file. You can run the file directly as your Inventor drawing file is open.
Sincerely
Mohammad Hasan Joudivand
Mr Gokhan,
I have adopted the code you shared but as it is stated in other commands it gets part of the goal done.
I have the same goal and i have not been able to find any other resolution.
I want to be able to assing linework in assembly .idw to appropriate layers to export .dwg.
Is there a way or another code writer who can improve the above code to achive the goal?
The goal is assinging linework in .idw of assemblies (i.e. including tubing, parts, nuts&bolts, flanges, plastic parts etc.) to appropriate layers to export .dwg.
It would be greatly appreciated if anyone could help. Thank you.
Can't find what you're looking for? Ask the community or share your knowledge.