I guess the views should be in the order of the assembly views (and maybe even the parts in the assembly browser where they get their names). But there might be some views that are used on other drawings. And if we lock a Rep other than the one that was already dimensioned, it defeats the whole purpose of working from a copy of an old job.
In this thread:
http://forums.autodesk.com/t5/inventor-customization/ilogic-for-idw-from-iam/td-p/6321501/highlight/...
in rusmwb's reply at 05-23-2016 07:24 AM (is that going to be consistent or would you see a local time where you are?)
In the code that starts with:
Public Sub CreateViewForEachRep()
Could we add a line that locks the view rep?
I assume we could place
oDesView.SetDesignViewRepresentation(oDesView.Name, True)
right after the
Call PlaceBaseView(oSheet, assyDoc, oPoint1, oDesView.Name)
No that does not work, you see I only sort of understand what I'm doing with iLogic - I'm completely lost with VBA.
I need help with the syntax. It "expected ="?? Evidently I need some sort of expression, I guess.
Also, could you post something like
No.
There is no way to do that.
The API does not recognize the current active Rep in the drawing view unless it is already locked, and cannot lock the view Rep without knowing its name.
or however you want to word it - but just the clearest, most concise explanation all alone in a separate post? That way I can select it as the "solution" so if someone comes across this thread they can see right away that you can't do what I was initially hoping to do.