hexagon logo

Macro to create markers at a fixed location in multiple identical objects.

I have multiple identical objects (pistons) in my Adams model. I want to create a marker at the center of back face in each piston. ( as seen below)
image
I want to know can I automate this process using some macro.
(The location on highlighting is seen as p1.SOLID40.E6 (center). Like this there are multiple other pistons p2, p3, ...... in the model and position for marker creation in each piston will be same- SOLID40.E6 (center) )
Parents
  • Hi,
    Thanks for the model and the macro script.
     
     
    image
     
    I would like to know instead of using exact coordinates for the location (as seen highlighted above), is it possible to include name of point feature in the macro (as seen in below image). Like in this case, when I right click in Adams view, I get following options for point selection. I want to choose 'p1.SOLID406.E7 (center)'. I tried to include this in the location command in the script but it didn't work. If you can figure out some way to include this, please share.
     
    image
     
    P.S. The geometry is imported as STEP file from other CAD software.
Reply
  • Hi,
    Thanks for the model and the macro script.
     
     
    image
     
    I would like to know instead of using exact coordinates for the location (as seen highlighted above), is it possible to include name of point feature in the macro (as seen in below image). Like in this case, when I right click in Adams view, I get following options for point selection. I want to choose 'p1.SOLID406.E7 (center)'. I tried to include this in the location command in the script but it didn't work. If you can figure out some way to include this, please share.
     
    image
     
    P.S. The geometry is imported as STEP file from other CAD software.
Children
No Data