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: 

Is it possible to give parts of an assembly a layer?

8 REPLIES 8
SOLVED
Reply
Message 1 of 9
Anonymous
3371 Views, 8 Replies

Is it possible to give parts of an assembly a layer?

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!

8 REPLIES 8
Message 2 of 9
mcgyvr
in reply to: Anonymous

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..

https://knowledge.autodesk.com/support/inventor-products/troubleshooting/caas/sfdcarticles/sfdcartic...

 

If this is just something you need a few times (for one project) then just do it manually.. 

 



-------------------------------------------------------------------------------------------
Inventor 2023 - Dell Precision 5570

Did you find this reply helpful ? If so please use the Accept Solution button below.
Maybe buy me a beer through Venmo @mcgyvr1269
Message 3 of 9
Gokhan_Kaya
in reply to: Anonymous

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

 


Forumlarımızda çözülen sorularınızı "ÇÖZÜM OLARAK KABUL ET" ("Accept as Solution") seçimiyle işaretlemeyi lütfen unutmayın.
Beğendiğiniz mesajları lütfen "Övgü Puanı" ("Kudo") ile ödüllendirin.

Gökhan Kaya
Tehcnical Manager
Autodesk Inventor Certified Professional 2015
LinkedIn



MSI WS 60 i7 Quadro M2000M

Message 4 of 9
Gokhan_Kaya
in reply to: Anonymous

Hi You can ilogic code by Ericflick

 

http://forums.autodesk.com/t5/inventor-customization/ilogic-to-change-the-layer-based-on-appearance/...

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

 

 

 

 


Forumlarımızda çözülen sorularınızı "ÇÖZÜM OLARAK KABUL ET" ("Accept as Solution") seçimiyle işaretlemeyi lütfen unutmayın.
Beğendiğiniz mesajları lütfen "Övgü Puanı" ("Kudo") ile ödüllendirin.

Gökhan Kaya
Tehcnical Manager
Autodesk Inventor Certified Professional 2015
LinkedIn



MSI WS 60 i7 Quadro M2000M

Message 5 of 9
blair
in reply to: Gokhan_Kaya

Other that iLogic, as posted, this video gives you an idea of what really gets placed from the IAM file into a IDW.


Inventor 2020, In-Cad, Simulation Mechanical

Just insert the picture rather than attaching it as a file
Did you find this reply helpful ? If so please use the Accept as Solution or Kudos button below.
Delta Tau Chi ΔΤΧ

Message 6 of 9
Anonymous
in reply to: Anonymous

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!

Message 7 of 9

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.

Message 8 of 9
Anonymous
in reply to: viniciusfortes

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

Message 9 of 9

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.

Post to forums  

Autodesk Design & Make Report