Forum de la communauté Allplan

[Question] Creating sections, views and dimensions

Balises:
  • Allplan
  • PythonParts
  • View
  • Sections
  • Dimensions

Hi, I have completed the 3D object model code. Now I want to create its section views with dimensions. I could not find pure examples for this. How can I do it?

Pièces-jointes (1)

Type: image/png
Téléchargé 30 fois
Size: 7,40 KiB

Show most helpful answer Hide most helpful answer

Hi,

the creation of associative views and sections together with placing dimension lines is shown inn the SectionAndViews example, located in

  • etc/PythonPartsExampleScripts/ReinforcementExamples/SectionAndViews.py
  • etc/Examples/PythonParts/ReinforcementExamples/SectionAndViews.pyp

Note, that currently not all options and settings of Views and Sections are accessible through the API. The same refers to dimension lines. Have a look on the example, to see what is possible.

Best,
Bart

Hi,

the creation of associative views and sections together with placing dimension lines is shown inn the SectionAndViews example, located in

  • etc/PythonPartsExampleScripts/ReinforcementExamples/SectionAndViews.py
  • etc/Examples/PythonParts/ReinforcementExamples/SectionAndViews.pyp

Note, that currently not all options and settings of Views and Sections are accessible through the API. The same refers to dimension lines. Have a look on the example, to see what is possible.

Best,
Bart

Hi Bart, thanks for the reply. I have been working on that example for 2 days and the main problem occurs with the creation methods. I have created my object with staticmethod and build_ele methods. Since the sections and view example also creates a model with self. method, I am having a hard time to rebuild the code for my object. What do you suggest?