先展示最终效果,再说过程。
过程稍有些烦,但没有难度。最重要的是准备好的dxf文件,只有一条pline。
有些curve可能是spline,如果不转,在adams中也可以读入,但会有很多段,整理起来不顺手。于是前期工作都在autocad中完成。
必须找一下高版本的,我用的是2012,因为低版本中pedit命令无法将spline转为pline.
Command: PEDIT
Select polyline or [Multiple]: Select polyline or [Multiple]:
Object selected is not a polyline
Do you want to turn it into one?
Specify a precision <10>:
Enter an option [Close/Join/Width/Edit
vertex/Fit/Spline/Decurve/Ltypegen/Reverse/Undo]:
j
Select objects: 1 found
Select objects:
114 segments added to polyline
Enter an option [Open/Join/Width/Edit
vertex/Fit/Spline/Decurve/Ltype
gen/Reverse/Undo]:
Command:
adams中主要是用临时文件作交换,将点坐标都写入文件,再读取。
写入文件时,可能会提醒文件不存在,没关系,先手工建一个,再覆盖。文件的后缀为dat.