Welcome to the Onshape forum! Ask questions and join in the discussions about everything Onshape.

First time visiting? Here are some places to start:
  1. Looking for a certain topic? Check out the categories filter or use Search (upper right).
  2. Need support? Ask a question to our Community Support category.
  3. Please submit support tickets for bugs but you can request improvements in the Product Feedback category.
  4. Be respectful, on topic and if you see a problem, Flag it.

If you would like to contact our Community Manager personally, feel free to send a private message or an email.

How do I query for an image in a part studio

billy2billy2 Member, OS Professional, Mentor, Developers, User Group Leader Posts: 2,068 PRO
edited June 2023 in FeatureScript
I'm trying to fix superderive. My thinking is because you're replicating MCs, why can't I replicate images?

here's the image:


how do I get it from the var selectedparts"

Comments

  • MichaelPascoeMichaelPascoe Member Posts: 1,989 PRO

    I believe the image data is attached to the construction edges around the image. They can be moved away from the image, but when you go to delete them, the image gets deleted too. Perhaps there is a way to get the attributes from the edges. You will probably need to use some edit logic for this, fun stuff.


    Learn more about the Gospel of Christ  ( Here )

    CADSharp  -  We make custom features and integrated Onshape apps!   Learn How to FeatureScript Here 🔴
  • billy2billy2 Member, OS Professional, Mentor, Developers, User Group Leader Posts: 2,068 PRO
    edited June 2023
    While querying the incoming derived part, I see no sketch entities. 

    They retrieve MCs using qMateConnectorsOfParts to retrieve all MC in the incoming parts.

    Thinking life is simple, I tried 
    qSketchFilter and get nothing that looks like a sketch.

    I'll review your image code and see if I'm missing something.

    Thanks

     
Sign In or Register to comment.