-
Re: Macro to Add Limit Tolerance
Deepak Gupta May 12, 2015 6:47 AM (in response to Kevin Partridge)This is do able. This is I feel it should works:
1. User selected the dimension and run the macro.
2. Macro gather all information of the dimension.
3. Change the tolerance type with required value and use other settings from step 2.
-
Re: Macro to Add Limit Tolerance
Kevin Partridge May 12, 2015 8:11 AM (in response to Deepak Gupta)Right. This is what I was trying to accomplish.
But I do not have the proper vba/solidworks knowledge to do so.
-
Re: Macro to Add Limit Tolerance
Deepak Gupta May 12, 2015 8:38 AM (in response to Kevin Partridge)Can you attach a part and drawing whose dimension you would like to change.
-
Re: Macro to Add Limit Tolerance
Kevin Partridge May 12, 2015 9:04 AM (in response to Deepak Gupta)Deepak,
I have attached the files to the original question as for some reason it would not allow me to reply with them.
The model and drawing do not have proper dimensioning schemes, however they will depict the functionality I am looking for in the macro.
Thanks for looking into this.
-
Re: Macro to Add Limit Tolerance
Deepak Gupta May 12, 2015 9:07 AM (in response to Kevin Partridge)Check #18 on this post on how to attach files in a reply: Forum Posting
Also check these helpful posts; Frequently Asked Forum Questions and How to ask a good question in the API forum for your future reference to get best out this forum
-
Re: Macro to Add Limit Tolerance
Kevin Partridge May 20, 2015 1:56 PM (in response to Deepak Gupta)Thanks for the suggestions Deepak.
Were you able to access the model/drawing?
-
Re: Macro to Add Limit Tolerance
Deepak Gupta May 20, 2015 3:49 PM (in response to Kevin Partridge)Sorry Kevin, haven't got any time yet to look into that. Quite over busy at the moment.
-
-
-
-
-
-
-
Re: Macro to Add Limit Tolerance
Sethu Raman Jun 4, 2015 2:19 AM (in response to Kevin Partridge)Kevin, try this for diameter dimension
boolstatus = Part.EditDimensionProperties2(3, upper_limit_in_mm, lower_limit_in_mm, "", "", False, 9, 2, True, -1, -1, "<MOD-DIAM>", "", True, "", "", False)