Jump to content

Punktkomponente X Y Z Koordinaten


---
 Share

Recommended Posts

Hallo,

Ich versuche aus einer Punktkomponente die punkte mit X Y Z Koordinaten und Normalenvektor über ein Skript einen Flächenpunkte zu erstellen.

Liebe Grüße

André

Link to comment
Share on other sites

  • 1 month later...

Hello Andre,

here is a sample for the code

 


import gom
import os

MCAD_ELEMENT = gom.script.primitive.create_surface_point(
    name='Point 1',
    normal={
#normal to z
        'direction': gom.Vec3d(0.0, 0.0, 1.0),
        'point': gom.Vec3d(0.0, 0.0, 0.0),
        'type': 'projected'
    },
    point={
        'coordinates': gom.Vec3d(-129.2868327, -194.2263868, 23.06342855),
        'id': 0,
        'target': gom.app.project.actual_elements['Component 1'],
        'type': 'coded'
    },
    properties={
        'property1': 'value1',
        'property2': 'value2',
       
    }


Regards
Mohamed 

 

Link to comment
Share on other sites

 Share

×
×
  • Create New...