devouring
2nd Mar 2007, 03:16 pm
Dear friends,
I am currently working on my final year project as an engineering student, and we are trying to get a full parametric 3D model from a freehand sketch. Well its a long process... but my problem lies in the script file which will be loaded in the Mechanical Desktop.
Let me recapitulate my problem shortly:
1. I build my polyline via the command line.
2. I then convert the polyline to a profile, using amprofile. At this stage the polyline turns to separate line entities. Infact if you select one of the lines, only that particular line is selected. Hence the explode command is not required.
3. I then get the entity name stored in variable 'a'- using (setq a (car(entsel)))
Furtherly, I also create a seletion set named 'myset' with the entity I need inside it - using (setq myset (ssadd a))
4. Now I try to constraint that line. I type in command line:
amaddcon and then H - to indicate horizontal constraint.
5. Now when prompted for an object to be reoriented I type:
!myset or !a - however they are not recognized... as shown below:
Command: amaddcon
Enter an option
[Hor/Ver/PErp/PAr/Tan/CL/CN/PRoj/Join/XValue/YValue/Radius/Length/Mir/Fix/eXit]
<eXit>: h
Valid selections: line, ellipse or spline segment
Select object to be reoriented:!myset
<Selection set: 8a>
Valid selections: line, ellipse or spline segment
Select object to be reoriented:!a
<Entity name: 7efaa4f8>
Valid selections: line, ellipse or spline segment
What am I doing wrong? And is there a way how to select that line for constraining via command line?
Thanks for your patience,
Yours truly,
Franklin
I am currently working on my final year project as an engineering student, and we are trying to get a full parametric 3D model from a freehand sketch. Well its a long process... but my problem lies in the script file which will be loaded in the Mechanical Desktop.
Let me recapitulate my problem shortly:
1. I build my polyline via the command line.
2. I then convert the polyline to a profile, using amprofile. At this stage the polyline turns to separate line entities. Infact if you select one of the lines, only that particular line is selected. Hence the explode command is not required.
3. I then get the entity name stored in variable 'a'- using (setq a (car(entsel)))
Furtherly, I also create a seletion set named 'myset' with the entity I need inside it - using (setq myset (ssadd a))
4. Now I try to constraint that line. I type in command line:
amaddcon and then H - to indicate horizontal constraint.
5. Now when prompted for an object to be reoriented I type:
!myset or !a - however they are not recognized... as shown below:
Command: amaddcon
Enter an option
[Hor/Ver/PErp/PAr/Tan/CL/CN/PRoj/Join/XValue/YValue/Radius/Length/Mir/Fix/eXit]
<eXit>: h
Valid selections: line, ellipse or spline segment
Select object to be reoriented:!myset
<Selection set: 8a>
Valid selections: line, ellipse or spline segment
Select object to be reoriented:!a
<Entity name: 7efaa4f8>
Valid selections: line, ellipse or spline segment
What am I doing wrong? And is there a way how to select that line for constraining via command line?
Thanks for your patience,
Yours truly,
Franklin