Step 1 requires reading and interpreting the scope box data. Step 2 is demonstrated by the discussion on how to is trivial: you simply say view.SectionBox = newSectionBox as shown below. Set up the required view SectionBox bounding box data, i.e.Extract the required data from the scope box.Our goal is to programmatically relocate and rotate the section box so it is at the same location and angle as the scope box, and also make the size of the section box the same as the scope box.Īnswer: You need to implement the following workflow, or rather data flow: The 3D view SectionBox property is checked, so the view SectionBox is also shown, using solid lines.īoth are selected, and thus highlighted in blue: Question: Here is a model in 3D view containing a scope box represented by the dotted lines. Here is the discussion that led up to this solution: To manipulate an existing view instead of creating a new one, you simply set up the bounding box in the same way and assign it to the view SectionBox property as shown below. In that post, it is fed into the CreateSection method. a transform plus minimum and maximum values describing the location, orientation and size of the box. The key is setting up the view SectionBox property properly. I actually already showed how to set up a view section box discussing how toĬreate a section view parallel to a wall. specifying exactly how the model is cut in the current 3D view. In fact, we show how to use the manually adjusted scope box to define the view section box, i.e.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |