Inventor General Discussion

Inventor General Discussion

Reply
Mentor
239 Posts
162 Kudos
Registered: ‎07-02-2012
Post 1 of 5
Accepted Solution

Drawing Hatch Color - ilogic controlled

697 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
239 Posts
162 Kudos
Registered: ‎07-02-2012
Post 2 of 5

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*
2,554 Posts
893 Kudos
Registered: ‎09-13-2011
Post 3 of 5

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
239 Posts
162 Kudos
Registered: ‎07-02-2012
Post 4 of 5

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*
2,554 Posts
893 Kudos
Registered: ‎09-13-2011
Post 5 of 5

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
Are you interested in helping shape the future of the Autodesk Community? To participate in this brief usability study, please click here. Your time and input is greatly appreciated!