ds-blue-logo
Preview  |  SOLIDWORKS USER FORUM
Use your SOLIDWORKS ID or 3DEXPERIENCE ID to log in.
SCScott Campbell24/05/2021

I have a model and I created a front view of it. I have a macro that will be looping through all the edges to place a note. Here's what I understand after doing some reading.

1. Select vertex of model; model_pt

2. Transform the pt from model space to view space; swView_pt

3. Transform the swView_pt to sheet space; swSheet_pt

If I'm attaching notes to the view, wouldn't I only need to get the transform from model to view space?

Something like:

Set swModelPt=swMathUtil.CreatePoint(model_pt)

Set swViewXForm=swView.ModelToViewTransform

Set swView_pt=swModelPt.MultiplyTransform(swViewXForm)

Is this correct?