Inventor General Discussion

Inventor General Discussion

Reply
Mentor
tsreagan
Posts: 239
Registered: ‎07-02-2012
Message 1 of 5 (677 Views)
Accepted Solution

Drawing Hatch Color - ilogic controlled

677 Views, 4 Replies
07-15-2013 06:16 AM

Does anyone know how to access the color for a particular hatch within a drawing using iLogic.

I would like to color the hatching for parts based on paramaters besides material.

 

ie.

Purchased parts = Green Hatch

Refrence = Grey Hatch

 

I would hope one could loop through the views looking for hatches, and once found, check the part they are associated with, then based on an "if then, change the hatch color and move on to the next pattern.

 

Thanks,

 

T.S.

 

 

Thanks,

 

I restarted the thread in customization, so you board gurus can ixnay this thread if you wish.

 

T.S.

The right way to do it is to link to the new thread and accept as solution. This will help anyone in the future who may seek the same information.

New thread: http://forums.autodesk.com/t5/Autodesk-Inventor-Customization/iLogic-access-Hatch-Object-and-modify-color/m-p/4330775#U4330775

Mentor
tsreagan
Posts: 239
Registered: ‎07-02-2012
Message 2 of 5 (657 Views)

Re: Drawing Hatch Color - ilogic controlled

07-15-2013 11:30 AM in reply to: tsreagan

Been researching this all day with no progress.

Besides general hatch visibility and angle, I see no iLogic paramaters that represent hatches in a drawing.

 

I can select the hatch, and change its color manually, so it has some representation somewhere,  anyone know how to access a hatch object in a drawing wth iLogic?

 

Are they converted to hidden sketches with filled regions, or something funky like that perhaps?

 

 

Thanks,

 

T.S.

 

 

*Expert Elite*
mrattray
Posts: 2,538
Registered: ‎09-13-2011
Message 3 of 5 (650 Views)

Re: Drawing Hatch Color - ilogic controlled

07-15-2013 11:55 AM in reply to: tsreagan

There are some things that aren't exposed via the API. Usually things that A'Desk never anticipated anyone wanting to automate.

You could try asking this question on the Inventor Customization forum. All the really savy developer types hang out over there, and should be able to give you a better answer.

Mike (not Matt) Rattray

Mentor
tsreagan
Posts: 239
Registered: ‎07-02-2012
Message 4 of 5 (628 Views)

Re: Drawing Hatch Color - ilogic controlled

07-16-2013 08:43 AM in reply to: mrattray

Thanks,

 

I restarted the thread in customization, so you board gurus can ixnay this thread if you wish.

 

T.S.

*Expert Elite*
mrattray
Posts: 2,538
Registered: ‎09-13-2011
Message 5 of 5 (623 Views)

Re: Drawing Hatch Color - ilogic controlled

07-16-2013 09:31 AM in reply to: tsreagan

The right way to do it is to link to the new thread and accept as solution. This will help anyone in the future who may seek the same information.

New thread: http://forums.autodesk.com/t5/Autodesk-Inventor-Customization/iLogic-access-Hatch-Object-and-modify-...

Mike (not Matt) Rattray

Post to the Community

Have questions about Autodesk products? Ask the community.

New Post
Announcements
Do you have 60 seconds to spare? The Autodesk Community Team is revamping our site ranking system and we want your feedback! Please click here to launch the 5 question survey. As always your input is greatly appreciated.