Foro de Soporte Allplan

[Pregunta] Creating sections, views and dimensions

Etiquetas:
  • 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?

Adjuntos (1)

Type: image/png
Descargado 30 veces
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?