#1
|
|||
|
|||
Create_match_line ?
Hello,
I'm working on the macro and need to create a freeform. I try to use "create_match_line" between two points (E & C3), but it doesn't work. PHP Code:
Thanks |
#2
|
||||
|
||||
Re: Create_match_line ?
Can you provide a little more context? For example, where do you use this code, and what kind of data are in the variables E and C3? Also, what kind of error are you seeing?
Thanks! Claus
__________________
CoCreate Modeling FAQ: http://www.clausbrod.de/CoCreateModeling/ |
#3
|
|||
|
|||
Re: Create_match_line ?
Yes, of course...
I have two worplanes. The first is a square with fillets (8 vertices) and the second with a circle. I split the circle to have the same number of vertices. The problem is to use the command to create the freeform. The error message is "Illegal call to action routine." I have attached a picture and lisp macro Thanks for your help |
#4
|
||||
|
||||
Re: Create_match_line ?
OK, I see. add_loft must also be called within sd-call-cmds.
Claus
__________________
CoCreate Modeling FAQ: http://www.clausbrod.de/CoCreateModeling/ |
#5
|
|||
|
|||
Re: Create_match_line ?
The problem is that I can create the wokplanes, but "create-match-line" and "add-loft" don't work. I don't know how I can select the first point (C3) on the first workplane and the second point (E) on the other...
Maximus |
#6
|
||||
|
||||
Re: Create_match_line ?
Another thing that I noticed that you may have to remove the "complete" token from the add_loft command.
Code:
(in-package :test) (use-package :oli) (sd-defdialog 'test-matchlines :variables '((p1 :value-type :raw-vport-pick) (p2 :value-type :raw-vport-pick)) :ok-action '((sd-call-cmds (create_match_line p1 p2)) (sd-call-cmds (add_loft :keep_tool :no :loft_check :no)) ))
__________________
CoCreate Modeling FAQ: http://www.clausbrod.de/CoCreateModeling/ |
#7
|
|||
|
|||
Re: Create_match_line ?
I removed complete... but I have always the same error message
PHP Code:
|
#8
|
||||
|
||||
Re: Create_match_line ?
Yup, I had a chance to run your code now, and I get the same error message. Unfortunately, I'll be traveling for about two weeks and won't be able to look into this any closer, sorry.
Claus
__________________
CoCreate Modeling FAQ: http://www.clausbrod.de/CoCreateModeling/ |
#9
|
||||
|
||||
Re: Create_match_line ?
I did something similar years ago and digging through my folders found something that I hope will help you along with this.
Code:
;; Basic idea of how to programatically (non-interactively) specify a vertex point to the CREATE_MATCH_LINE command ;; Note: this code must be called from within (sd-defdialog ...) or else the (sd-call-cmds ...) stuff doesn't work (setq match-pnt1 (sd-call-cmds (get_selection :select :selected_wp "/w1" :vertex_2d 0,0))) (setq match-pnt2 (sd-call-cmds (get_selection :select :selected_wp "/w2" :vertex_2d 10,5))) (create_match_line match-pnt1 match-pnt2) Thom |
#10
|
|||
|
|||
Re: Create_match_line ?
Thanks for your help but...
I didn't succeed with this macro |
#11
|
|||
|
|||
Re: Create_match_line ?
Somebody can help me ?
I have problem to create this part.... Thanks |
#12
|
|||
|
|||
Re: Create_match_line ?
Hello,
Try your attached programme. |
#13
|
|||
|
|||
Re: Create_match_line ?
Thanks a lot, ofischer, It's running, I have just change one variable.
|
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Thread Tools | Search this Thread |
Display Modes | Rate This Thread |
|
|