Forum de la communauté Allplan

Visual Scripting: Get Brep3D from Subtraction note. [Résolu]


Hi everyone,

I want to get some Brep3d from a list (see the picture).
The question is do we have a note to do that? I try to use Listitem, but it is out range of index.
Thanks

Pièces-jointes (1)

Type: image/png
Téléchargé 137 fois
Size: 77,13 KiB

Show solution Hide solution

Again: The result of the Node is not a List of BREps! So you cannot get BRep number 2,3,5!

A List of BReps looks like this (list_breps.png)!

n=6 descript the Nummer of shells
or parts. A shell is the collection of connected surfaces of the BRep.
As I know, there is no node to extract the shells from the BRep as separate Breps!

Pièces-jointes (1)

Type: image/png
Téléchargé 102 fois
Size: 18,63 KiB

The result is no list. Just a BRep. So you cannot use ListItem!

Cité par Nemo
The result is no list. Just a BRep. So you cannot use ListItem!

Thank for your support. Do you have a solution for this? I want to get Brep number 2,3,5.

Again: The result of the Node is not a List of BREps! So you cannot get BRep number 2,3,5!

A List of BReps looks like this (list_breps.png)!

n=6 descript the Nummer of shells
or parts. A shell is the collection of connected surfaces of the BRep.
As I know, there is no node to extract the shells from the BRep as separate Breps!

Pièces-jointes (1)

Type: image/png
Téléchargé 102 fois
Size: 18,63 KiB

I have created a Node to get the parts of a BRep3D: NodeGetParts

Therefore extract the content of Std_VisualScripts_Geometry_ObjectAccess.zip to Std\VisualScripts\Geometry\ObjectAccess

The Script brep_get_parts uses this node (s. brep_get_parts_vs.png) with the Result (s. brep_get_parts.png).

Pièces-jointes (3)

Type: application/zip
Téléchargé 604 fois
Size: 1,60 KiB
Type: image/png
Téléchargé 123 fois
Size: 199,69 KiB
Type: image/png
Téléchargé 100 fois
Size: 28,41 KiB

...and here is the script brep_get_parts:

Extract the content of Std_Library_VisualScripting.zip to Std\Library\VisualScripting

Pièces-jointes (1)

Type: application/zip
Téléchargé 600 fois
Size: 2,59 KiB

Cité par Nemo
...and here is the script brep_get_parts:
Extract the content of Std_Library_VisualScripting.zip to Std\Library\VisualScripting

Thank you very much !

Cité par Nemo
I have created a Node to get the parts of a BRep3D: NodeGetParts
Therefore extract the content of Std_VisualScripts_Geometry_ObjectAccess.zip to Std\VisualScripts\Geometry\ObjectAccess
The Script brep_get_parts uses this node (s. brep_get_parts_vs.png) with the Result (s. brep_get_parts.png).

Sometime the result of Subtraction Node is Polyhedron 3D so I cannot use GetBrep Node. Do you give me a solution for this?

Regards,

Pièces-jointes (1)

Type: image/png
Téléchargé 19 fois
Size: 9,55 KiB

I have modified the Node GetParts to accept Polyhedron3D too.

The one and only thing to do in the example script is, to remove Node PolyCurveFillet.
The the result of SweepByPathNode is a Polyhedron.

Extract the content of Std_VisualScripts_Geometry_ObjectAccess.zip to Std\VisualScripts\Geometry\ObjectAccess
Extract the content of Std_Library_VisualScripting.zip to Std\Library\VisualScripting

Pièces-jointes (3)

Type: image/png
Téléchargé 57 fois
Size: 35,53 KiB
Type: application/zip
Téléchargé 584 fois
Size: 1,64 KiB
Type: application/zip
Téléchargé 577 fois
Size: 2,52 KiB