I am attempting to create custom configuration variables in order for the workset configuration file to find a directory path defined by the variables (similar to defining MS_DEF to point to a particular directory for finding dgn files). In particular, I am attempting to have two custom variables (MS_POINTCLOUDDIR and MS_REALITYMESHDIR) located within the workset.cfg file point to directories when one executes Point Cloud> Attach and Reality Mesh> Attach. Any idea how I may get this concept to work? Am I merely missing configuration variables which already exist (as they exist for attaching dgns, refs, and images)?
Thanks!
Mark
Mark Plum said:MS_DEF
MicroStation configuration variables have the prefix MS_. That enables you to distinguish them from your custom configuration variables.
MS_
Mark Plum said:I am attempting to have two custom variables (MS_POINTCLOUDDIR and MS_REALITYMESHDIR)
You've created a maintenance problem. How will you distinguish your variables from MicroStation's variables in, say, a year's time? Choose a distinct prefix that means something to your project or organisation. For example, since your organisation is Poe and P Associates, why not PP_POINTCLOUDDIR and PP_REALITYMESHDIR.
PP_POINTCLOUDDIR
PP_REALITYMESHDIR
Regards, Jon Summers LA Solutions
OK, no problem with the change of syntax of course (and I understand your point). Still, let me change those variables to PP_POINTCLOUDDIR and PP_REALITYMESHDIR and point those to a particular directory. How do I get Point Cloud> Attach and Reality Mesh> Attach to default to that (those) directory(s) at the workset level? Also, what happened to runmacro.ma (it does not seem to be included with Connect (or has not been updated to this latest edition of MicroStation)?
I actually did create a comment line within the workset cfg fileto state #Poe Custom Configuration Variables (to answer your question on distinguishing these variables (your idea of PP_ is better, I think).
Mark Plum said:what happened to runmacro.ma (it does not seem to be included with Connect (or has not been updated to this latest edition of MicroStation)?
It's no longer necessary with CONNECT. You can instruct a VBA macro to start automatically without external code. See VBA help.
Post questions about VBA to the MicroStation Programming Forum.
Wow, well how neat is that (about the ma/ macro), Jon! Excellent!
Hi Mark,
This will require enhancements to be filed.
Just to ensure the requests are defined correctly:
You would like variables to specify the default folder in which a WorkSet's point cloud or reality mesh files would be found.
Marc
are you talking about a "search" variable that would be used to resolve the attachments ? or merely a variable that controls what folder the "attach" dialog opens up to ?
Timothy Hickman
CADD Manager | CADD Department
timothy.hickman@colliersengineering.com
Main: 877 627 3772|
1000 Waterview Drive Suite 201 | Hamilton, New Jersey 08691
Marc, yes this is correct (Like MS_DEF or MS_RFDIR). Such variables would also deliver a consistency across the ATTACH functions within the default ribbon structure in Connect.
Tim, well the "search" variable could be used to "Select Configuration Variable" on the Open dialog when Attach>Point Cloud or Attach>Reality Mesh is executed. That is actually more cumbersome for the end user than just searching through directories until the file was found. I am looking for a variable (Like MS_DEF) that controls what folder the attach dialog opens up to (as you have stated). I suppose that my primary point is to state to Bentley "you have such built in configuration variables for opening up dgn's, attaching reference files, and attaching images. Why do not the same variables exist for attaching Point Clouds and Reality Meshes from a defined folder location?"
there is not a variable that does this, not even for dgn's references, etc...