I am trying to write a macro to delete an entire dimension string and
the only way I can think to do it is have the user rmb a dimension,
select Delete String then the macro would collect all dimensions
aligned to the selected dimension and delete them all and also delete
the original selected dimension. The two problems I have is that I am
not sure how to check for dimension alignment and I am not sure how to
add something to the rmb menu.
Does anyone have an example or suggestion on now to accomplish either
of these two tasks?
Thanks, Sam
|
|
0
|
|
|
|
Reply
|
neverchecked40 (75)
|
9/22/2006 6:07:00 PM |
|
Sam, I think unless you are deleting the origin from an ordinate
dimension, or your dimensions are grouped, selecting a single aligned
dimension to delete will not delete all the aligned dimensions. You
need to have the dimensions grouped.
To align and group dimensions, in any one view control select or box
highlight the dimensions, right mouse click, align, then while still
highlighted, right mouse click, group. Then you can move or delete all
those grouped dimensions together.
Hope that helped. Diego
Sam wrote:
> I am trying to write a macro to delete an entire dimension string and
> the only way I can think to do it is have the user rmb a dimension,
> select Delete String then the macro would collect all dimensions
> aligned to the selected dimension and delete them all and also delete
> the original selected dimension. The two problems I have is that I am
> not sure how to check for dimension alignment and I am not sure how to
> add something to the rmb menu.
>
> Does anyone have an example or suggestion on now to accomplish either
> of these two tasks?
>
> Thanks, Sam
|
|
0
|
|
|
|
Reply
|
Diego
|
9/22/2006 7:17:15 PM
|
|
Are you implying that even through the api there is no way to determine
if two dimensions are aligned with each other? That does not seem right
but I cannot really argue because I cannot find a way to do it yet.
What I am trying to do is give the user the ability to delete any
dimension that is aligned to the selected dimension, seems like that
should be possible.
Thanks for your response
Sam
Diego wrote:
> Sam, I think unless you are deleting the origin from an ordinate
> dimension, or your dimensions are grouped, selecting a single aligned
> dimension to delete will not delete all the aligned dimensions. You
> need to have the dimensions grouped.
>
> To align and group dimensions, in any one view control select or box
> highlight the dimensions, right mouse click, align, then while still
> highlighted, right mouse click, group. Then you can move or delete all
> those grouped dimensions together.
>
> Hope that helped. Diego
>
> Sam wrote:
> > I am trying to write a macro to delete an entire dimension string and
> > the only way I can think to do it is have the user rmb a dimension,
> > select Delete String then the macro would collect all dimensions
> > aligned to the selected dimension and delete them all and also delete
> > the original selected dimension. The two problems I have is that I am
> > not sure how to check for dimension alignment and I am not sure how to
> > add something to the rmb menu.
> >
> > Does anyone have an example or suggestion on now to accomplish either
> > of these two tasks?
> >
> > Thanks, Sam
|
|
0
|
|
|
|
Reply
|
Sam
|
9/24/2006 1:34:20 AM
|
|
|
2 Replies
641 Views
(page loaded in 0.674 seconds)
Similiar Articles: API, get all dimensions aligned to selected dimension - comp.cad ...I am trying to write a macro to delete an entire dimension string and the only way I can think to do it is have the user rmb a dimension, select Del... CHAMFER DIMENSION - comp.cad.solidworksAPI, get all dimensions aligned to selected dimension - comp.cad ... CHAMFER DIMENSION - comp.cad.solidworks API, get all dimensions aligned to selected dimension - comp ... SolidWorks API - Pulling Evaulated Custom Property values - comp ...API, get all dimensions aligned to selected dimension - comp.cad ... CHAMFER DIMENSION - comp.cad.solidworks API, get all dimensions aligned to selected dimension - comp ... API: Delete all custom properties - comp.cad.solidworksAPI: Delete all custom properties - comp.cad.solidworks Way to extract custom properties out of a SW file via VBA? - comp ... I believe this is also documented in the API ... Dimensioning a 3d sketch with horizontal and vertical dimensions ...API, get all dimensions aligned to selected dimension - comp.cad ... Dimensioning a 3d sketch with horizontal and vertical dimensions ... API, get all dimensions aligned ... Scale in one dimension only? - comp.cad.autocadAPI, get all dimensions aligned to selected dimension - comp.cad ... Scale in one dimension only? - comp.cad.autocad API, get all dimensions aligned to selected dimension ... Moving Ordinate Dimesions - comp.cad.solidworksAPI, get all dimensions aligned to selected dimension - comp.cad ... Moving Ordinate Dimesions - comp.cad.solidworks API, get all dimensions aligned to selected dimension ... Vertex Arrays and Texturing - comp.graphics.api.opengl2D texture and 3D texture volume rendering - comp.graphics.api ... API, get all dimensions aligned to selected dimension - comp.cad ... Vertex arrays and unexpected ... Ordinate dim settings.... - comp.cad.solidworksI assumed it related to ordinate dimensions which were at a ... But I find it hard to get excited about small ... You have to Select "Settings" => "Explore Coordinate ... Automatically creating dimenions on Slddrw - comp.cad.solidworks ...... Slddrw using the API? I want all the dimensions ... which adds all dimensions of the currently selected feature. ... the entities to dimension (which is a bit of work). The API ... API, get all dimensions aligned to selected dimension - comp.cad ...I am trying to write a macro to delete an entire dimension string and the only way I can think to do it is have the user rmb a dimension, select Del... API - Deleting model dimensions from drawing - solidworksAPI Calls to delete drawing block instances and definition. 2. API, get all dimensions aligned to selected dimension I am trying to write a macro to delete an entire ... 7/24/2012 3:57:48 PM
|