krywarick6
Automotive
- Jun 9, 2003
- 138
I'm writing a macro within Excel. When I transfer a cell value into a SolidWorks model dimension I divide the cell value by 1000 to get a millimeter value for the model, as in the following example:
Part.Parameter("Dim@Sketch@Model.SLDPRT").SystemValue = [cell].Value / 1000
This works fine for linear dimensions.
Problem: I want to transfer an angular value. I can't seem to figure out what the relationship is during the transfer. For instance, when I want to transfer the value of 36°, it transforms into 2063°.
Does anyone have a suggestion for a conversion factor? It doesn't appear to even be a radian value, ie. 36/360*2pi = .628pi. The closest that I can get is (36/1000) * (36/2), but this yields 37°+.
I'm totally baffled.
Regards,
Christopher Zona
Litens Automotive Partnership
Concord, Ontario, Canada
Part.Parameter("Dim@Sketch@Model.SLDPRT").SystemValue = [cell].Value / 1000
This works fine for linear dimensions.
Problem: I want to transfer an angular value. I can't seem to figure out what the relationship is during the transfer. For instance, when I want to transfer the value of 36°, it transforms into 2063°.
Does anyone have a suggestion for a conversion factor? It doesn't appear to even be a radian value, ie. 36/360*2pi = .628pi. The closest that I can get is (36/1000) * (36/2), but this yields 37°+.
I'm totally baffled.
Regards,
Christopher Zona
Litens Automotive Partnership
Concord, Ontario, Canada