几何尺寸与公差论坛------致力于产品几何量公差标准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)
-   -   【转帖】how to load curve points from a text file in api (http://www.dimcax.com/hust/showthread.php?t=5413)

yang686526 2009-04-13 12:00 PM

【转帖】how to load curve points from a text file in api
 
how to load curve points from a text file in api?
dear all,
i searched in api and found that freepointcurvefeaturedata has a method for loading points (xyz) from a text file but i could not find its accessors, i.e. a method which returns freepointcurvefeaturedata. the api says that freepointcurvefeaturedata accessor is featuremanager::createdefinition() but it reaturns an object which cannot be casted to freepointcurvefeaturedata. can anybody help me with a couple of vb lines?
thanks,
artman
does this help at all?
swapp = application.sldworks
doc = swapp.activedoc
doc.insertcurvefile "filename"
dear marlow springer,
thanks a lot for your good and usefule comment, yes it is worked well.
regards
artman
edited: 10/27/2008 at 12:58 am by artin rezaie
quick


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