Im currently creating a macro to create a point on the selected sketch point of the model in a drawing view.
But it seems that there are lots of transform to do.
Does anyone who can help me with this?
Thank you in advance.
Regards,
DiAnne
SolidworksApi macros
I guess you recorded a macro and there are hundreds of lines with transforms? That's just you zooming in and out. You can remove most of that and still have a functioning macro.
I guess you need to do something like this:
I wrote this macro a long time ago. It can almost certainly be simplified, but it will do the job.
Hi Peter,
I can select the point already, and I didnt recorded a macro.
My problem is that, the selected point is a point in a sketch within the model.
and i want to create a point from the selected point.
Hi Simon,
Id tried it, but doesnt work.
In that case you could start by recording a macro Clean it up a little, add some things, post it here and tell us where you get stuck.
In what way does it not work?
Did you step through the macro to see which line isn't working?