几何尺寸与公差论坛------致力于产品几何量公差标准GD&T (GDT:ASME)|New GPS(ISO)研究/CAD设计/CAM加工/CMM测量

几何尺寸与公差论坛------致力于产品几何量公差标准GD&T (GDT:ASME)|New GPS(ISO)研究/CAD设计/CAM加工/CMM测量 (http://www.dimcax.com/hust/index.php)
-   SolidWorks二次开发 (http://www.dimcax.com/hust/forumdisplay.php?f=111)
-   -   【转帖】create pointline location adjustment problem (http://www.dimcax.com/hust/showthread.php?t=4674)

yang686526 2009-04-12 08:34 PM

【转帖】create pointline location adjustment problem
 
create point/line location adjustment problem
i want to create a point here
part.clearselection2(true)
dim skpoint as sketchpoint
skpoint = part.createpoint2(-0.1, -6, 0)
but it takes wrong coordinate can u tell me what is the reason why i an not able to specify exact position.
regards,
aqeel
edited: 02/14/2009 at 12:45 am by aqeel ahmed
try sketchmanager.createpoint ( x, y, z)
thanx luke,
problem is when i draw point on a fresh sketch it works fine but if i already have a few line in a sketch then it starts giving me wrong locations even same case is with line i have a horizontal line in sketch and when i draw a vertical line from (0,0,0) it takes some other points.
so what can i do to overcome this issue.
regards,
turn off tools -> sketch settings -> automatic solve and automatic relations
or with code
part.userfavors
part.sketchmanager.autosolve = false
part.sketchmanager.autoinference = false
thanx ivana i m inspired, this is working now,if u don't mind can i have ur chat id for immediate reply.....
regards,
aqeel
quick


所有的时间均为北京时间。 现在的时间是 05:55 PM.