HowTo check object type?

HowTo check object type?

Jef_E
Collaborator Collaborator
331 Views
1 Reply
Message 1 of 2

HowTo check object type?

Jef_E
Collaborator
Collaborator

Hi!

 

I made an AddIn that works with centermarks and centerlines. I use this frequently but I found an bug in my program.

 

If you use automated centerlines to for a flange bolt pattern you get a circle on the bolt diameter and centerline on the holes. But this centerline is not the same type of line as other centerlines.

 

Is there a way to know what type of line this is? So I can add this type into my AddIn that users can select it.



Please kudo if this post was helpfull
Please accept as solution if your problem was solved

Inventor 2014 SP2
0 Likes
332 Views
1 Reply
Reply (1)
Message 2 of 2

dano0310
Advocate
Advocate

Hi Jef

 

Select a line on your drawing.  Then run a script in VBa that calls up the drawing document.

 

Check your locals.  Under the drawing document in the select set is your selected line.  Within it is the style.  I checked the two line styles in my drawing I currently have open and they are exaclty the same.

 

I would check your styles.  Go to "Styles editor" > "Standard" > your current active standard > "Object defaults"

In here there will be a listing of the styles used for your different centrelines.

 

Hope this helps.

Regards

 

Dan

0 Likes