• This forum is the machine-generated translation of www.cad3d.it/forum1 - the Italian design community. Several terms are not translated correctly.

how to create lisp with rec command

  • Thread starter Thread starter Kaji
  • Start date Start date

Kaji

Guest
hi, I noticed that the 3d access viewer has the ability to load lisp that I usually use in full modeling, I wondered if it was possible to use lisp created ad hoc with the recorder and then use them on 3d access, since I'm comfortable having them both open to meet the needs without having to load too many objects in the real working environment, also because our pdm pe2 manages very well the separate loads of the 3 models.

I asked for courtesy if it was possible to explain or make examples of how to easily create lisp from modeling to see if then you can use it in 3d access, thanks for availability
 
in your question there is implicitly the answer, that is to use the command f :d

apart from the jokes, I don't know how to plan and I created one macro with the f. I guess you tried to use it but without satisfactory results, right?
 
I tried years ago, but of course I stopped the steps with the mouse, only I tried to do the .rec file by modeling and then use it on modeling, now the problem is that 3d access does not manage files.rec, so I need to create the file.rec open it as text file, extrapolate the command lines I need and then save the lisp.
 
I tried years ago, but of course I stopped the steps with the mouse, only I tried to do the .rec file by modeling and then use it on modeling, now the problem is that 3d access does not manage files.rec, so I need to create the file.rec open it as text file, extrapolate the command lines I need and then save the lisp.
I give you the example of this recording, then modified and put into a button, as a lisp. specifically this macro creates a new 1:1 scale annotation sheet and without frame, and puts us in a front view, as already defined in the existing sheet 1.

registration:
Code:
;; encoding: utf-8

;%recording-begin  at  14:19:32  11/01/2019
;%sd-version: creo elements/direct modeling 20.0 (x64 edition) (20.0.5.14)
;! nota: i contenuti di questo file potrebbero non essere più supportati nelle prossime versioni di creo elements/direct modeling.
preselect
set_pers_context "toolbar-relative"
am_sheet_create
:scale
"1:1"
:frame-type
"nessuno"
:add_views
am_create_standard_views
:front :on
complete
preselect
( docu::docu-process-button-2-3 'button3 )
(frame2::set-record-status :suspend)
( docu::docu-process-direct-pick 10.337329254575 127.228667748621 )
(gpntdocu 10.337329254575 127.22866774862101 "annotation")
( docu::docu-process-button-2-3 'button3 )
(frame2::set-record-status :suspend)
set_pers_context "toolbar-relative"
am_view_prop
(get-matching-preselected-objects)
:display_ui :the_view
:show_no_hidden_lines
:update_view
:the_view "/percorso_della_parte_nell_albero_struttura/anteriore2"
cancel
preselect
;%recording-end  at  14:20:16  11/01/2019
and this is the macro obtained from the above:
Code:
am_sheet_create

:frame-type


"nessuno"

:scale "1:1"

:add_views

am_create_standard_views

:front :on

(gpntdocu 0 0 "annotation")

am_view_prop

:show_no_tangent_lines

:calc_sym_lines :off

:calc_center_lines :off

:calc_hidden_lines :off

:update_view

cancel
 

Forum statistics

Threads
44,997
Messages
339,767
Members
4
Latest member
ibt

Members online

No members online now.
Back
Top