is there a keyin variable for the active file you are currently in?
The following (2) keyins will work great for switching all of my reference views from dynamic to cached and then from cached back to dynamic but they require me to input the active file name. I would like the file name to be the file I'm currently in so that i can make it a more user friendly tool.
reference visibleedges cached active_file.dgn
reference visibleedges dynamic active_file.dgn
Hi Grant,
to receive the filename, where the active model is stored, using $(filename(_DGNFILE)) expression. So e.g. to display the filename in Message Center, you can use key-in expand echo $(filename(_DGNFILE)).
With regards,
Jan
Bentley Accredited Developer: iTwin Platform - AssociateLabyrinth Technology | dev.notes() | cad.point
In MicroStation V8i, we can use the following key-in to implement this. Unfortunately the key-in command VBA EXECUTE can't run in CE. I am investigating this issue.
VBA EXECUTE CadInputQueue.SendKeyin "reference visibleedges cached " & ActiveDesignFile.Name
Thank you for looking into it.
Unknown said:The keyin below doesn't do anything. reference visibleedges cvesynch manual; reference visibleedges cached $(filename(_DGNFILE))
I believe the problem may be a missing and required “$ “ (or “expand keyin”) for the expand keyin application to know to expand the remaining part of your key-in string. Try making the following change to see if this helps:
FROM
reference visibleedges cvesynch manual; reference visibleedges cached $(filename(_DGNFILE))
TO
$ reference visibleedges cvesynch manual; reference visibleedges cached $(filename(_DGNFILE))
HTH,Bob
Answer Verified By: Grant Wood
$ reference visibleedges cvesynch manual; reference visibleedges cached $(filename(_DGNFILE)) still doesn't work :(
Interestingly
reference visibleedges cached $(filename(_DGNFILE))
does work.