Autodesk Inventor
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic to the Top
- Bookmark
- Subscribe
- Printer Friendly Page
iLogic Rule for idw drawing
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
Hello!
Sitaution: A drawing of a big assembly. In the first (base) view I have colored the parts with different colors.
Question: Can somebody help me with a rule that makes the parts from the projected views to have the some colors from the base view?
Just a simple example:
Part1 - Red
Part2 - Blue
Part3 - Green
So I need the these parts from the projected views to have the same colors . It would really help me a lot, because I spending a lot of time with big assemblies.
Or if it is not that easy to make this kind of rule, give me some tips how should I start and what snippets it should contain. I'm new to iLogic and programming, I found it quite difficult...
Windows 7 x64
Dell Precision T7400 Intel(R) Xeon(R) CPU X5472 @ 3.00GHz (4 CPU's), 8Gb RAM, NVIDIA Quadro FX 5600 1536MB GDDR3
Solved! Go to Solution.
Re: iLogic Rule for idw drawing
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
HI fakeru,
I'm sure it could be done with iLogic, but I'm not sure it needs to.
Unless I've misunderstood, you can setup View Represenations in your assembly to do this, and then set the projected views to use the same View Rep. as the base view.
I hope this helps.
Best of luck to you in all of your Inventor pursuits,
Curtis
http://inventortrenches.blogspot.com
Did you find this reply helpful ? If so please use the Accept as Solution or Kudos button below.
Re: iLogic Rule for idw drawing
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
Based on the details from you, could you provide more details how to color the parts in Assembly? Actually there are two ways to color parts -
1. We color the parts with different colors in assembly. When creating base view with shaded style, both of base and project views are colored with the same colors in part. And We can create different presentation views for different colors settings, and the project views are colored with the same colors in base view. Please see the "Shaded.png"
2. We color the parts with different colors in drawing browser. When creating base view, and then change the color within component properties in browser. Please see the "HideLineRemoved.png". If you want to get the project view with the same color in base view, we can leverage the ILogic.
Please let me know what the expected solution you prefer. That I can take the further action.
Thanks,
River Cai
Re: iLogic Rule for idw drawing
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
I'm with Curtis on this one.. an assembly view rep would accomplish this easily and without the need for any coding.
-------------------------------------------------------------------------------------
2012 Product Design Suite Ultimate
Windows 7 64 bit
Core I7 920 processor, ATI HD6970 graphics card, 12G RAM
Re: iLogic Rule for idw drawing
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
Mcgyvr,
I think the OP want to make dwg / idw views with parts in color but not shaded parts, ie normal 2-D line work.
If color in view reps could be translated to line work in the drawing, that would be perfect. But, I don't kow how to accomplish that.
Re: iLogic Rule for idw drawing
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
rdyson wrote:Mcgyvr,
I think the OP want to make dwg / idw views with parts in color but not shaded parts, ie normal 2-D line work.
If color in view reps could be translated to line work in the drawing, that would be perfect. But, I don't kow how to accomplish that.
Well then he should have stated that.
He said he colored the parts..not the lines.
-------------------------------------------------------------------------------------
2012 Product Design Suite Ultimate
Windows 7 64 bit
Core I7 920 processor, ATI HD6970 graphics card, 12G RAM
Re: iLogic Rule for idw drawing
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
HI fakeru,
If it is the line color you're asking about, this might helpful:
I hope this helps.
Best of luck to you in all of your Inventor pursuits,
Curtis
http://inventortrenches.blogspot.com
Did you find this reply helpful ? If so please use the Accept as Solution or Kudos button below.
Re: iLogic Rule for idw drawing
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
sorry guys for not giving enough details about my question.
So i need to color the parts edges.
This is the way I'm doing it:
1.Select the part from a view (fisrt enable the filter "Select Part Priority ")
2.Right click-->Properties --> Color ---> Choose the color
Here are some screenshots
http://img84.imageshack.us/img84/65/unled3cu.jpg
http://img17.imageshack.us/img17/3948/unled4kj.jpg
http://img804.imageshack.us/img804/3073/11589937.j
To understand how much I need the solution check out this screenshot:
http://img198.imageshack.us/img198/2624/13787548.j
and this is just medium assembly from my work...
Windows 7 x64
Dell Precision T7400 Intel(R) Xeon(R) CPU X5472 @ 3.00GHz (4 CPU's), 8Gb RAM, NVIDIA Quadro FX 5600 1536MB GDDR3
Re: iLogic Rule for idw drawing
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
Curtis, this is good solution for me! thank you very much!
But there is still a small problem. Some parts I don't need to color, but I if run that macro, all the parts are colored according to assembly color... and none of them will be black (as I never make parts black).
I think the best for me would be that I give the colors in the first view and then the parts properties are copied to others views.
Thanks!
Alexandru
Windows 7 x64
Dell Precision T7400 Intel(R) Xeon(R) CPU X5472 @ 3.00GHz (4 CPU's), 8Gb RAM, NVIDIA Quadro FX 5600 1536MB GDDR3
Re: iLogic Rule for idw drawing
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
Hi fakeru,
I think View Representations will still be a big part of your solution. Rather than manually selecting the components at the drawing level, you should be able to apply color overrides at the assembly level and color your each component just like you want it to apear in the drawing. Then save that as a View Representation that you use in the drawing view(s). This way you can have parts colored as black for the drawing views, but have them as their "real" color in the assembly.
Then you can use Brian Ekin's routine.
I hope this helps.
Best of luck to you in all of your Inventor pursuits,
Curtis
http://inventortrenches.blogspot.com
Did you find this reply helpful ? If so please use the Accept as Solution or Kudos button below.



