XXX:
Are you in Poland?
xxx wrote:
> Hi i have complex shape on 62 level,how to get posisiotn from this
> element. But i want write code in basic script,how?
This is the long answer to your question.
Set the type of coordinate system that you are using, for example,
rectangular, for XYZ coordinates:
From the command line enter,
DEFINE ACS , and select, RECTANGULAR .
For 3D work turn on the Boresight Lock from the menu bar,
SETTINGS > LOCKS > BORESIGHT .
The location of any key point in a design file may be found by setting
the Snap Mode to Keypoint.
Then set the type of information that is to be returned as a result of a
tentative point snapped to a specified keypoint on the element.
From the command line enter,
SET TPMODE LOCATE .
Any tentative point placed on an element while in any measurement
command will be located, and the location will be stated in the status
field. It will be of the form: 000.0000, 000.0000, 000.0000 for the
X, Y, Z design (and not screen) coordinates. In 3D the view selection
does not matter, and the location selected will be stated in the design
coordinates.
If the design data are located in the correct place in the design file
coordinate system the point selected will be in the correct location.
The round off factor determines the number of places of accuracy, for
example, 000.0 or 000.0000000 :
Settings > Design File > Coordinate Readout > Accuracy <select number of
decimal places>
CAD workers often begin drawings at arbitrary selected locations, and
their data are often not placed in the right place in the coordinate
system. If the point selected is not at the correct location that is
required by your design it may be necessary to fence and move all the
data using DL=x,y,z. Alternatively you may use GO=X,Y,Z and specify a
principal point in the design to move all the data.; and that rather
moves the coordinate to the proper place relative to the design.
A good practice is to turn on all levels and construction elements prior
to fencing and moving all the design data. In that way you will include
all the data in the move.
Then the snapped first tentative point of a measurement command will
result in the display of the correct location of the point in the design.
Its a good idea to set the TPMODE setting on the workstation using File
Design, <ctrl-F>.
I can't help you with writing any code.
That small question has many possible settings. One of the virtues of
MicroStation is that it is possible to make all the necessary settings.
If you have more questions, feel free to ask.
Ralph Hertle
Edison, New Jersey, USA


|