Hello gents
My customer have sent me a .mdg model to fix some alignment-related problems. The format looks like text. Can I modify it directly? If so is there a specification for .mdg?
Thank you
Specs for .mdg?
-
- Posts: 2
- Joined: Wed Jun 03, 2020 3:40 am
Re: Specs for .mdg?
I do not think .mdg is published. The format is kind of textual, but only basic things are editable.
I have done small changes few times, but it rarely makes sense. The API is the way to do modifications.
I could change object names and colors. Location and orientation are modifiable also. I would not waste my time to so anything much trickier than that.
One way to figure out the layout is to modify the thing you are interested in and look at the diffs in the file.
<Et> tag is entity. <Fr> under that is the local frame. In BoolOp.mdg, for an example
Defines frame with origin at (5 -10 8), X axis (1 0 0) and Y axis (0 0.34202 -0.939693)
Frank
I have done small changes few times, but it rarely makes sense. The API is the way to do modifications.
I could change object names and colors. Location and orientation are modifiable also. I would not waste my time to so anything much trickier than that.
One way to figure out the layout is to modify the thing you are interested in and look at the diffs in the file.
<Et> tag is entity. <Fr> under that is the local frame. In BoolOp.mdg, for an example
Code: Select all
<Fr>
<O>5 -10 8</O>
<A0>1 0 0</A0>
<A1>0 0.34202 -0.939693</A1>
</Fr>
Frank