Message 1 of 10
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
How do I set the line style for a drawing view? I haven't found any property for this on the DrawingView object?
Solved! Go to Solution.
How do I set the line style for a drawing view? I haven't found any property for this on the DrawingView object?
Solved! Go to 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
(Not an Autodesk Employee)
Ok - thanks for letting me know. Now it got extra votes 🙂
Added my vote (and a this thread bump)
Really would be nice to have this ability programmatically.
Has anyone found a workaround this missing API functionallity?
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
(Not an Autodesk Employee)
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.
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?