Visio Guy

Visio Discussions => ShapeSheet & Smart Shapes => Topic started by: lightmedic on October 24, 2017, 03:08:46 PM

Title: D-Tools custom shape
Post by: lightmedic on October 24, 2017, 03:08:46 PM
Does anybody know how to reference a product's image/thumbnail and include it as part of a shape?
Title: Re: D-Tools custom shape
Post by: Paul Herber on October 24, 2017, 03:14:32 PM
The icon is only part of the stencil that the shape was dragged from and does not carry forward as part of the shape.
What are you trying to do?
Title: Re: D-Tools custom shape
Post by: wapperdude on October 24, 2017, 04:59:21 PM
1)  Screen capture, save as drawing file.
2)  Ask the company ...sometimes they have images available.
3)  Make your own

Beware, the image might be copyrighted so tread carefully.

Wapperdude
Title: Re: D-Tools custom shape
Post by: lightmedic on October 24, 2017, 05:57:52 PM
Sorry, I have been so head down I didn't provide enough info.
Every D-tools catalog item has/can have a thumbnail and large image associated with it. I am looking to reference this image as part of a custom shape with additional information, make, model..., but can't determine how/where to point to the pic. Essentially building a shape where the catalog image is the graphic.

The image itself is populated into the D-tools catalog from where ever, manufacture site, cut sheets, google.
Title: Re: D-Tools custom shape
Post by: lightmedic on October 24, 2017, 06:04:07 PM
An example:
Title: Re: D-Tools custom shape
Post by: Visio Guy on October 25, 2017, 02:36:46 PM
Hi LM,

<other readers, LM is talking about a product called D-Tools System Integrator (http://d-tools.com/si-2017/), which includes integration with Visio>

Are you trying to get at the image in a shape that already exists, or are you trying to find the source of the image for any product? I assume we're talking about Line Drawings, in which case D-Tools adds the image to the shape, if one exists. This image is (probably) pulled from the catalog database, and dropped inside the line shape, which is a group. So the image is a subshape. In order to do this, D-Tools probably might have to save the file to disk temporarily, then load it into Visio, but they might also do some sort of OLE drop as well.

You can open a group window by right-clicking a shape, then choosing "Open Some_ShapeName".

If you're doing ShapeSheet work, you'll then likely need the id of the group and the image subshape. See:

  http://www.visguy.com/2009/07/15/whats-my-shapes-id/

If, say, the group has ID=1 and the image ID=5, you can build references between them.

Image half width of group:

  Width = Sheet.1!Width*0.5

Insert text on the image subshape to show comp id:

  Inserted custom field = Sheet.1!Prop.ComponentID

Group references location of the image subshape:

  User.SomeValueX = Sheet.5!PinX


Title: Re: D-Tools custom shape
Post by: lightmedic on October 25, 2017, 07:22:23 PM
Inquiry was posted prior to finding the stock line image. Chatted with Vic, support ticket pending. Your reply was helpful in that I think I may have another approach to try. Optimistic but not hopeful.
Title: Re: D-Tools custom shape
Post by: Visio Guy on October 26, 2017, 06:26:59 AM
Support ticket came around to me on the other end! I do a lot of work with D-Tools :)
Title: Re: D-Tools custom shape
Post by: lightmedic on October 26, 2017, 11:39:10 AM
I am available and still poking at it.