查看单个帖子
旧 2009-04-13, 10:48 AM   #1
yang686526
高级会员
 
注册日期: 06-11
帖子: 14579
精华: 1
现金: 224494 标准币
资产: 234494 标准币
yang686526 向着好的方向发展
默认 【转帖】export xy coordinates from points in between spline points

export xy coordinates from points in between spline points
i have a spline that's defined by 8 points spaced evenly every 0.1" in the x-direction, each with their own pre-determined y-coordinate. i would like to export the x-y coordinates of the curve that solidworks automatically creates in between the spline points, and ideally i'd like to have them in 0.001" increments in the x-direction. i saw some macros on this website to export the user-defined spline points, but is there a way to export the points in between that solidworks determines?
thanks,
kevin
you may be able to use reference points applied along the spline using the along curve distance or multiple reference point or evenly distribute option, but the number of points is limited to 100.
another method is to create a tiny spherical feature at the start point of the spline, and then use the insert > pattern/mirror > curve driven pattern function.
either way at .001" spacing that will create a large file and one helluva lot of points.


place a single sketch point constrained coincident to the spline. add a driving dimension in the x-direction and a driven dimension in the y-direction. incrementally change the x and read both x and y.
an article about dimensions in api:
yang686526离线中   回复时引用此帖
GDT自动化论坛(仅游客可见)