Skip to main content
Solved

Writing DWG hyperlink

  • January 20, 2016
  • 4 replies
  • 87 views

itay
Supporter
Forum|alt.badge.img+18

Hi,

Does anybody have any experience in writing hyperlinks in an Autocad DWG?

The only mention in the documentation is rather sketchy and doesnt help much :S

http://docs.safe.com/fme/2015.1/html/FME_Desktop_D...

Any tips or info are welcome.

Itay

Best answer by annabelleatsafe

Hi Itay,

Hopefully I can provide some information that will help you with

your workflow! Just a little background info:

Hyperlinks

are stored as Extended Entity Data in your DWG if they are attached to blocks

or other entities like polygons. Please note, however, that in order for the

URL to be correctly stored in the EED the Regapp used/named (in the below case,

PE_URL) must be present in your DWG template file. Please also note that if the

hyperlink is attached to a text entity it is stored as a hyperlink field, which

FME does not access for reading or writing. As you can see in the below image,

there is a very specific format in the Extended Entity Data for how the

hyperlink is stored:

extended-entity-data-hyperlinks 

In order to successfully write

out a hyperlink in a dwg, you would need to replicate this structure in the

extended entity data. Attached is a

basic DWG (with no hyperlinks) to DWG (with hyperlinks) workspace to take a

look at:

acad2acad.fmwt

I hope this gives you some information to work with. Much of your workflow would also be dependent on your source data and desired output, so if

you have more specific questions with your use case please feel free to contact

us with a support request through

https://support.safe.com/knowledgeSubmitCase

with your workspace and source data.

Regards,

Annabelle

This post is closed to further activity.
It may be an old question, an answered question, an implemented idea, or a notification-only post.
Please check post dates before relying on any information in a question or answer.
For follow-up or related questions, please post a new question or idea.
If there is a genuine update to be made, please contact us and request that the post is reopened.

4 replies

Forum|alt.badge.img+6

Hi Itay,

Hopefully I can provide some information that will help you with

your workflow! Just a little background info:

Hyperlinks

are stored as Extended Entity Data in your DWG if they are attached to blocks

or other entities like polygons. Please note, however, that in order for the

URL to be correctly stored in the EED the Regapp used/named (in the below case,

PE_URL) must be present in your DWG template file. Please also note that if the

hyperlink is attached to a text entity it is stored as a hyperlink field, which

FME does not access for reading or writing. As you can see in the below image,

there is a very specific format in the Extended Entity Data for how the

hyperlink is stored:

extended-entity-data-hyperlinks 

In order to successfully write

out a hyperlink in a dwg, you would need to replicate this structure in the

extended entity data. Attached is a

basic DWG (with no hyperlinks) to DWG (with hyperlinks) workspace to take a

look at:

acad2acad.fmwt

I hope this gives you some information to work with. Much of your workflow would also be dependent on your source data and desired output, so if

you have more specific questions with your use case please feel free to contact

us with a support request through

https://support.safe.com/knowledgeSubmitCase

with your workspace and source data.

Regards,

Annabelle


itay
Supporter
Forum|alt.badge.img+18
  • Author
  • Supporter
  • January 22, 2016

Hi Itay,

Hopefully I can provide some information that will help you with

your workflow! Just a little background info:

Hyperlinks

are stored as Extended Entity Data in your DWG if they are attached to blocks

or other entities like polygons. Please note, however, that in order for the

URL to be correctly stored in the EED the Regapp used/named (in the below case,

PE_URL) must be present in your DWG template file. Please also note that if the

hyperlink is attached to a text entity it is stored as a hyperlink field, which

FME does not access for reading or writing. As you can see in the below image,

there is a very specific format in the Extended Entity Data for how the

hyperlink is stored:

extended-entity-data-hyperlinks 

In order to successfully write

out a hyperlink in a dwg, you would need to replicate this structure in the

extended entity data. Attached is a

basic DWG (with no hyperlinks) to DWG (with hyperlinks) workspace to take a

look at:

acad2acad.fmwt

I hope this gives you some information to work with. Much of your workflow would also be dependent on your source data and desired output, so if

you have more specific questions with your use case please feel free to contact

us with a support request through

https://support.safe.com/knowledgeSubmitCase

with your workspace and source data.

Regards,

Annabelle

Hi @annabelleglas,

Thanks for the information and example.

I have managed to produce the required output. It did take me awhile to notice that the attribute output setting should be set to limited, so that basically the extended data would be created in the ws and not the writer.

Itay


anthrax_79
Contributor
Forum|alt.badge.img+4
  • Contributor
  • August 25, 2017

hi @AnnabelleAtSafe,

just wanted to ask how can i attach a hyperlink on a KML output.

 

 

say, I have produced a KML file. and in the balloon, i would like to add a hyperlink to an image or file on our network. FYI, the KML file i have created can only be accessed when the user is on our network hence, the hyperlink should work. I am using GME 2016.1.2.1 build 16674

Thanks

Lex


redgeographics
Celebrity
Forum|alt.badge.img+62

hi @AnnabelleAtSafe,

just wanted to ask how can i attach a hyperlink on a KML output.

 

 

say, I have produced a KML file. and in the balloon, i would like to add a hyperlink to an image or file on our network. FYI, the KML file i have created can only be accessed when the user is on our network hence, the hyperlink should work. I am using GME 2016.1.2.1 build 16674

Thanks

Lex

You can add a HTML img tag: <img src="url_to_the_image"/>, or a clickable link: <a href="url_to_the_image>link text</a> (or both, just wrap the img tag in the a tag)