macraiga
Electrical
- Oct 15, 2007
- 4
Hi All,
I am trying to use Solidworks API to make a model which uses dimensions down on the micron level.
The problem I am having is reading in small values to the CreateArc2 and CreateLine2 functions.
this is an example of one such line:
Part.CreateArc2 LineInputArray(2), LineInputArray(3), 0, LineInputArray(4), LineInputArray(5), 0, LineInputArray(6), LineInputArray(7), 0, 1
I read into LineInputArray from a text file and the numbers go in fine however when the arc is created it rounds off the numbers lower than 100micron to 0.
Is there a way to increase the precision in the function CreateArc2????? (and CreateLine2?)
I have thought about making the whole part larger and scaling afterwards but that had its own problems.
I have changed the precision in the options and can also change the units in the document but it seems to always read from the API in metres.
I would greatly appreciate any help you could give with this.
Many thanks,
macraiga
I am trying to use Solidworks API to make a model which uses dimensions down on the micron level.
The problem I am having is reading in small values to the CreateArc2 and CreateLine2 functions.
this is an example of one such line:
Part.CreateArc2 LineInputArray(2), LineInputArray(3), 0, LineInputArray(4), LineInputArray(5), 0, LineInputArray(6), LineInputArray(7), 0, 1
I read into LineInputArray from a text file and the numbers go in fine however when the arc is created it rounds off the numbers lower than 100micron to 0.
Is there a way to increase the precision in the function CreateArc2????? (and CreateLine2?)
I have thought about making the whole part larger and scaling afterwards but that had its own problems.
I have changed the precision in the options and can also change the units in the document but it seems to always read from the API in metres.
I would greatly appreciate any help you could give with this.
Many thanks,
macraiga