|
SolidWorks : Problem with small units / SldWrks API / External Access
Zzzziesta am 15.09.2009 um 19:55 Uhr (0)
Hi, I have a question regararding the API, I am fairly new to the API.I am using VB Visual Studio .Net Express to write an external application for Solid Works 2008. When I want to draw a very small rectangle into a sketch (by small I mean merely 5mm) it doesnt draw it at all. Strange thing is that if I run the same code in the internal vb editor, it does draw it.... If I change the size to 50mm it does draw it from the external program... Strange...Has anyone encountered this problem before? Please let me ...
| | In das Form SolidWorks wechseln |
|
SolidWorks : Problem with small units / SldWrks API / External Access
Zzzziesta am 16.09.2009 um 12:38 Uhr (0)
mkkk,it works! thank you very much... I guess I only need to call this function to the Application object once at the beginning, right?Thanks again and again,Ben
| | In das Form SolidWorks wechseln |
|
SolidWorks : Problem with small units / SldWrks API / External Access
Zzzziesta am 16.09.2009 um 09:52 Uhr (0)
I didnt use AddtoDB.So I tried this:Dim d = 0.0015mStandard(2).Select2(True, 0)mMod.InsertSketch2(False)mMod.SketchManager.AddToDB = TruemMod.SketchManager.CreateCornerRectangle(-d, d, 0, d, -d, 0)mMod.InsertSketch2(False)mMod.ClearSelection()mStandard(2) is reference to the Front Plane Feature.Strange thing is, that the above code works down to d=0.0016, but d=0.0015 it wont draw... This is really annoying... Any idea whats wrong? Could it be because of some kind of snap function or grid that is on?Cheers ...
| | In das Form SolidWorks wechseln |
|
Anzeige:
Anzeige: (Infos zum Werbeplatz)
 |