Inventor General

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

Drawing Hatch Color - ilogic controlled

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

 

 

Mentor
Posts: 239
Registered: ‎07-02-2012
Message 2 of 5 (343 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,227
Registered: ‎09-13-2011
Message 3 of 5 (336 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
Posts: 239
Registered: ‎07-02-2012
Message 4 of 5 (314 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,227
Registered: ‎09-13-2011
Message 5 of 5 (309 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

You are not logged in.

Log into access your profile, ask and answer questions, share ideas and more. Haven't signed up yet? Register

Announcements
Welcome to the new Autodesk Community!
If this is your first visit, click here to get started and make the most of the Community. Let us know what you think of the new experience in the Community Feedback Forum.

Need installation help?

Start with some of our most frequented solutions to get help installing your software.

Ask the Community


Inventor Exchange Apps

Created by the community for the community, Autodesk Exchange Apps for Autodesk Inventor helps you achieve greater speed, accuracy, and automation from concept to manufacturing.

Connect with Inventor

Twitter

Facebook

Blogs

Pinterest

Youtube