controlling sketch picture in configed part

Use this space to ask how to do whatever you're trying to use SolidWorks to do.
colt
Posts: 56
Joined: Tue Mar 30, 2021 5:43 pm
Answers: 0
x 14
x 22

controlling sketch picture in configed part

Unread post by colt »

Today I found out that a sketch picture's position, scale, and rotation are automatically configured. Anyone know how to control this or force all configs to have the same picture parameters?
configedSketchPic.JPG
Attachments
Assem1.SLDASM
(339.91 KiB) Downloaded 117 times
User avatar
mattpeneguy
Posts: 1386
Joined: Tue Mar 09, 2021 11:14 am
Answers: 4
x 2489
x 1899

Re: controlling sketch picture in configed part

Unread post by mattpeneguy »

Hey @colt,
I'm not sure if you can grab those properties with the API, but if it can be done, I'd guess you'd use a macro to do it. Maybe move this to the API/Macro section? Hey @gupta9665 and @josh, either one of you know how to do this?
I can see that you can insert a sketch picture with a macro, but I don't see where you can move it or resize it:
http://help.solidworks.com/2019/english ... ture2.html
User avatar
DanPihlaja
Posts: 862
Joined: Thu Mar 11, 2021 9:33 am
Answers: 25
Location: Traverse City, MI
x 815
x 993

Re: controlling sketch picture in configed part

Unread post by DanPihlaja »

I am using SW 2018 SP5. I have messed with the sketch picture a bunch of ways.


No matter what I do, if I change the location or angle of the picture, it is updated for all configurations. I cannot configure it at all.

How are you doing it?
Are you using the command "Sketch Picture"?
-Dan Pihlaja
Solidworks 2022 SP4

2 Corinthians 13:14
colt
Posts: 56
Joined: Tue Mar 30, 2021 5:43 pm
Answers: 0
x 14
x 22

Re: controlling sketch picture in configed part

Unread post by colt »

Thanks for the help. @dpihlaja I have the same exact version and only lose synchronization when I edit the sketch picture from the context of different configs. It was very confusing as I was not expecting it.

The gif takes a while to load
out.gif
Side question, is it possible to embed mp4 in viewer?
Attachments
example.mp4
(3.64 MiB) Downloaded 128 times
User avatar
mattpeneguy
Posts: 1386
Joined: Tue Mar 09, 2021 11:14 am
Answers: 4
x 2489
x 1899

Re: controlling sketch picture in configed part

Unread post by mattpeneguy »

colt wrote: Tue Oct 05, 2021 10:32 am Thanks for the help. @dpihlaja I have the same exact version and only lose synchronization when I edit the sketch picture from the context of different configs. It was very confusing as I was not expecting it.

The gif takes a while to load
out.gif
Side question, is it possible to embed mp4 in viewer?
If you want to reduce the file size for the videos, try resizing the SW window and use something like Screen to Gif (if you can't do it with the Nvidia tool) and only capture the smaller window. The gif file size is huge when you capture a whole 4k screen when it doesn't need to be.
colt
Posts: 56
Joined: Tue Mar 30, 2021 5:43 pm
Answers: 0
x 14
x 22

Re: controlling sketch picture in configed part

Unread post by colt »

@mattpeneguy I downsampled my video to 1920x1080 and created gif using ffmpeg but it was still massive. I will look into screen to gif. So the only way to embed mp4 would to be to upload on another site and then point the media element to url?
User avatar
mattpeneguy
Posts: 1386
Joined: Tue Mar 09, 2021 11:14 am
Answers: 4
x 2489
x 1899

Re: controlling sketch picture in configed part

Unread post by mattpeneguy »

colt wrote: Tue Oct 05, 2021 12:25 pm @mattpeneguy I downsampled my video to 1920x1080 and created gif using ffmpeg but it was still massive. I will look into screen to gif. So the only way to embed mp4 would to be to upload on another site and then point the media element to url?
@matt set the max file size to 50MB. So, I don't think he has set it to where you can't upload mp4s, but the file size is probably too large for your particular file.
User avatar
DanPihlaja
Posts: 862
Joined: Thu Mar 11, 2021 9:33 am
Answers: 25
Location: Traverse City, MI
x 815
x 993

Re: controlling sketch picture in configed part

Unread post by DanPihlaja »

colt wrote: Tue Oct 05, 2021 10:32 am Thanks for the help. @dpihlaja I have the same exact version and only lose synchronization when I edit the sketch picture from the context of different configs. It was very confusing as I was not expecting it.

The gif takes a while to load
out.gif
Side question, is it possible to embed mp4 in viewer?
So, what if you do the same exact thing in your video, but instead of hitting the rebuild button, you hit CTRL Q instead?

Because I am guessing that you cannot configure sketch pictures.

Probably the best way of going about it (IMO) is to create 2 sketches. Each with the picture how you want it. Then control the suppression state of the sketches relative to your configuration.
-Dan Pihlaja
Solidworks 2022 SP4

2 Corinthians 13:14
colt
Posts: 56
Joined: Tue Mar 30, 2021 5:43 pm
Answers: 0
x 14
x 22

Re: controlling sketch picture in configed part

Unread post by colt »

In the video I was hitting ctl-q before hitting rebuild button. I do not have approved graphics card so that could be a factor. Saving and reopening the assembly still shows the pictures in same locations.

My part had 20 configs so I ended up making a separate part in the assembly to house my sketch picture, then I mated it to the surface where the sketch picture was. Then did copy with mates for every config I wanted to attach it to. A little tedious but now it updates all instances.
Post Reply