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)
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) )
It is possible to write a macro to create markers automatically. As an example of a model of several pistons, I have written a macro to create markers. This macro may be used as a sample and can be adjusted appropriately for your specific model. The .cmx files of the model and the macro are attached here. Please change the extension to .cmd before using.
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.
P.S. The geometry is imported as STEP file from other CAD software.