DrawingView - Set linestyle for Reference Data?

DrawingView - Set linestyle for Reference Data?

Skadborg.NTI
Advocate Advocate
1,124 Views
9 Replies
Message 1 of 10

DrawingView - Set linestyle for Reference Data?

Skadborg.NTI
Advocate
Advocate

How do I set the line style for a drawing view? I haven't found any property for this on the DrawingView object?

Unavngivet.png

0 Likes
Accepted solutions (1)
1,125 Views
9 Replies
Replies (9)
Message 2 of 10

WCrihfield
Mentor
Mentor
Accepted solution

I posted an Idea to the Inventor Ideas site about this back in December, because I was working with someone else who was trying to manipulate those settings by code.  Unfortunately, it still only has two votes, so it must not be that popular of a request.

Wesley Crihfield

EESignature

(Not an Autodesk Employee)

Message 3 of 10

Skadborg.NTI
Advocate
Advocate

Ok - thanks for letting me know. Now it got extra votes 🙂

0 Likes
Message 4 of 10

josh.nieman
Advocate
Advocate

Added my vote (and a this thread bump)

 

Really would be nice to have this ability programmatically.

0 Likes
Message 5 of 10

Skadborg.NTI
Advocate
Advocate

Has anyone found a workaround this missing API functionallity?

0 Likes
Message 6 of 10

Fadi.Hanna.MO
Participant
Participant
Still nothing? You've got 21 votes now 🙂
I think all accessible buttons through mouse clicking should be accessible in Ilogic aswell....
Message 7 of 10

WCrihfield
Mentor
Mentor

That's a nice though, about everything clickable being available to iLogic, but unfortunately we're a long ways from that being a reality.  It may be possible to launch that dialog from an iLogic rule, by selecting a drawing view, then executing the proper command ("DrawingViewEditCtxCmd").  And it may be possible to simulate the process of using keyboard keys to navigate that dialog and toggle certain settings, and possibly enter data, using something like SendKeys.SendWait() in an iLogic rule, but even if that were possible, it would likely be unstable/unreliable, and usually a last resort.

I'm still using Inventor Pro 2021.2.2, but I see in the online help for Inventor 2022 that there is a new method defined under the DrawingView object called SetHiddenLinesStatus(), (and also the Get version), but as far as I can tell from that page, it isn't exactly what we're looking for here.  Hopefully, if we keep bumping similar posts and directing folks to that Idea, it will get enough votes (or attention) to get taken seriously and maybe implemented.

Wesley Crihfield

EESignature

(Not an Autodesk Employee)

Message 8 of 10

josh.nieman
Advocate
Advocate

Wow, I came across this thread today, saw the Inventor Idea linked, and when I went to vote for it, I saw I'd already voted for it.  Then scrolled down more on this forum post and saw I had already commented.

 

Yikes, this still isn't implemented.

Control of DrawingView object properties is pretty limited.  I really wish this would get improved.  There's a lot of manual drawing editing we have to do to each and every drawing of a certain type, because our automation can't do this step itself.

/edit/  We're using Inventor 2022 and yea, it's still not there.

Message 9 of 10

nbonnett-murphy
Advocate
Advocate

Hello,

 

It's 2023 and I still have to manually enter the dialog for each and every single drawing view and change this setting since you can't make it a template default and there's no API access. Also you can't bulk edit drawing view properties.

 

Has anyone found a way to make this happen?

Message 10 of 10

mallorn
Advocate
Advocate

Anyone from Autodesk to include it in API?

-------------------------
Tomasz Malinowski