• Industries
  • Products
  • Buy
  • Services & Support
  • Communities
  • Discussion Groups

    Autodesk Inventor

    Reply
    Active Contributor
    Posts: 26
    Registered: 03-07-2010
    Accepted Solution

    iLogic Rule for idw drawing

    717 Views, 19 Replies
    08-15-2011 10:11 AM

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

    Autodesk Inventor 2012 SP1
    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
    Distinguished Mentor
    Curtis_Waguespack
    Posts: 975
    Registered: 03-08-2006

    Re: iLogic Rule for idw drawing

    08-15-2011 07:41 PM in reply to: fakeru

    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

     

     

     

      solution.png  Did you find this reply helpful ? If so please use the Accept as Solution or  Kudos button below.

    Employee
    Posts: 139
    Registered: 05-20-2008

    Re: iLogic Rule for idw drawing

    08-16-2011 01:17 AM in reply to: fakeru

    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

    ***Guru
    Posts: 5,252
    Registered: 12-01-2004

    Re: iLogic Rule for idw drawing

    08-16-2011 05:25 AM in reply to: Yijiang.Cai/Autodesk

    I'm with Curtis on this one.. an assembly view rep would accomplish this easily and without the need for any coding.

    Please click "Accept as Solution" if this response answers your question.
    -------------------------------------------------------------------------------------
    2012 Product Design Suite Ultimate
    Windows 7 64 bit
    Core I7 920 processor, ATI HD6970 graphics card, 12G RAM

    Valued Mentor
    Posts: 399
    Registered: 04-11-2005

    Re: iLogic Rule for idw drawing

    08-16-2011 06:00 AM in reply to: mcgyvr

    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. 

    ***Guru
    Posts: 5,252
    Registered: 12-01-2004

    Re: iLogic Rule for idw drawing

    08-16-2011 09:08 AM in reply to: rdyson

    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. :smileyhappy: He said he colored the parts..not the lines.

    Please click "Accept as Solution" if this response answers your question.
    -------------------------------------------------------------------------------------
    2012 Product Design Suite Ultimate
    Windows 7 64 bit
    Core I7 920 processor, ATI HD6970 graphics card, 12G RAM

    Distinguished Mentor
    Curtis_Waguespack
    Posts: 975
    Registered: 03-08-2006

    Re: iLogic Rule for idw drawing

    08-16-2011 09:13 AM in reply to: fakeru

    HI fakeru,

     

    If it is the line color you're asking about, this might helpful:

    http://modthemachine.typepad.com/my_weblog/2010/10/changing-drawing-curves-to-match-assembly-color.h...

     

    I hope this helps.
    Best of luck to you in all of your Inventor pursuits,
    Curtis
    http://inventortrenches.blogspot.com

     

     

      solution.png  Did you find this reply helpful ? If so please use the Accept as Solution or  Kudos button below.

    Active Contributor
    Posts: 26
    Registered: 03-07-2010

    Re: iLogic Rule for idw drawing

    08-16-2011 09:54 AM in reply to: fakeru

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

     

    To understand how much I need the solution check out this screenshot:

    http://img198.imageshack.us/img198/2624/13787548.jpg 

    and this is just medium assembly from my work... 

     

     

    

    Autodesk Inventor 2012 SP1
    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
    Active Contributor
    Posts: 26
    Registered: 03-07-2010

    Re: iLogic Rule for idw drawing

    08-16-2011 09:59 AM in reply to: Curtis_Waguespack

    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 

    Autodesk Inventor 2012 SP1
    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
    Distinguished Mentor
    Curtis_Waguespack
    Posts: 975
    Registered: 03-08-2006

    Re: iLogic Rule for idw drawing

    08-16-2011 10:33 AM in reply to: fakeru

    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

     

     

     

     

     

     

      solution.png  Did you find this reply helpful ? If so please use the Accept as Solution or  Kudos button below.