Is there a key-in I can pair with the one below for setting the accuracy under the Working units? I was hoping to set up a batch to change this.
-SET UNITS [Master] [Sub]
Hi,
you would try to search forums at first, it was discussed and answered several times already. The key-in is vba execute ActiveSettings.CoordinateAccuracy = msdAccuracy3, the number in msdAccuracy means a number of decimal places.
With regards,
Jan
Bentley Accredited Developer: iTwin Platform - AssociateLabyrinth Technology | dev.notes() | cad.point
Answer Verified By: slehner
Is there also one for the format setting?
I wish I could find a list of these VBA things that are preloaded because I didn't know I could just run that one mentioned without creating something.
Unknown said:Is there also one for the format setting?
vba execute ActiveSettings.CoordinateFormat = <format>, where <format> can be msdMasterUnits, msdSubUnits or msdWorkingUnits.
Unknown said:I wish I could find a list of these VBA things
Well, it's only a help when the proper MicroStation key-in is missing. You can imagine like you run one line VBA macro, so you can check MicroStation VBA ActiveSettings object and its properties.
But it's always better to check if key-in doesn't exist.
This is really helpful but I was also wondering if there are key-ins to set the:
* Mastrer Unit type
* Sub Unit type
* Resolution value per Unit type
* Solids Working Areas value
I'm struggling with this very issue at the moment.
Cheers,
Andrew.
Hi Andrew,
some of answers are available at forums already.
Andrew Novinc said: Mastrer Unit type Sub Unit type
There is MicroStation key-in available:
set units <master unit> <sub unit>e.g. set units m mm or set units feet inch
Andrew Novinc said:* Resolution value per Unit type
vba execute ActiveModelReference.UORsPerStorageUnit = <value>
Andrew Novinc said:* Solids Working Areas value
I don't have too much experience with these detail advanced settings (fortunately have not met many situations when the default settings had to be changed). There is ActiveModelReference.storageUnit property available in MicroStation VBA API, I assume it's the way to change advance settings, but it just my guess.
I didn't see anything about setting the Accuracy for Architectural Sub Units (i.e. 1/2, 1/4, 1/8, 1/16, 1/32, 1/64).
What would be the keyin used for these?
I Hope This Helps Someone Reading This! (Intergraph>PseudoStation>MicroStation user since 1980's)
Unknown said:I didn't see anything about setting the Accuracy for Architectural Sub Units (i.e. 1/2, 1/4, 1/8, 1/16, 1/32, 1/64).
the answer is already there, but not fully described:
vba execute ActiveSettings.CoordinateAccuracy = <accuracy constant>
For all possible values of accuracy constant, see MsdCoordinateAccuracy Type description in MicroStation VBA help (delivered with all MicroStation installations).
Unknown said: Architectural Sub Units
To be precise, they are not Architectural Units, but Imperial Units, the most of architects over the world use decimal system, not inches and feets.