Skip to main content
11-Garnet
June 18, 2024
Question

sketch child of the frame

  • June 18, 2024
  • 2 replies
  • 1079 views

How can I load a sketch via command line that is placed as a child of the frame?

In my case I would like the "logo" sketch to be placed as a child of the "cart_A3" frame

the command line command to load the sketch is:
sd-am-load-sketch

 

 

I' have Creo Elements/Direct Modeling 20.5.1.0

    2 replies

    16-Pearl
    June 18, 2024
    Andrea

    This response is edited, as I found a much better way of doing it than my original response.

    Code:
    (sd-am-load-sketch :file_name file_name :position position
     :owner_type :current-frame
     :owner owner <- you do not need this if you set the owner_type to :current-frame.
     :adjust adjustment)
    Since
    Code:
    :current-frame
    is set as the
    Code:
    :owner_type
    , you will not need to fill out the
    Code:
    :owner field
    . That is only used if you want the owner to be a specific view or specific sketch.

    Adjustment

    Code:
    :upper_left
    :upper_middle
    :upper_right
    :middle_left
    :middle_middle
    :middle_right
    :lower_left
    :lower_middle
    :lower_right
    Regards
    Tom
    __________________
    Tom Kirkman

    Creo Elements/Direct 20.1
    Dell Precision 3581
    https://www.o-i.com
    olivierlp
    Community Manager
    June 26, 2024

    Hi @AR_01  ,
    I wanted to see if you got the help you needed. If so, please mark the reply as the Accepted Solution. It will help other members who may have the same question.
    Of course, if you have more to share on your issue, please pursue the conversation. 

    Thanks,

    Olivier