• This forum is the machine-generated translation of www.cad3d.it/forum1 - the Italian design community. Several terms are not translated correctly.

creation of hiperlink

  • Thread starter Thread starter NUNIX
  • Start date Start date

NUNIX

Guest
help!!! !
I need to create hyperlink dwg files (hyperlink) to be displayed later on dwf files.
I have the problem of creating these links on a huge number of blocks (20.000 approximately), I was thinking of inserting an attribute inside the blocks that contained the data to be inserted in the link.
exists or you can create a routine that through the autocad manager individuals that specific block and create the link by extracting the data from the attribute of the block.:frown:
 
redefine the block by entering the link, all the blocks inserted will contain the link.
 
here I arrive and what I suggested, the passage I would like to automate and speed up, what I need is that the string contained in the attribute link becomes the hyperlink (hyperlink) of that block. how to make this operation automatic on about 40,000 blocks
 
here I arrive and what I suggested, the passage I would like to automate and speed up, what I need is that the string contained in the attribute link becomes the hyperlink (hyperlink) of that block. how to make this operation automatic on about 40,000 blocks
here I did not understand, the link is already as an attribute within the block !!!

now it is clearer how to automate the thing....

Can you post the "type" block so I see how it is structured?
 
file://d:/documents %20and %20settings/master/desktop/test %20lisp.rar
you must use the attached management under the response to the mess (obviously in advanced mode) if you do not know how to accerve you use the quota key under a message


cmq I sent you private mess with mail
 

Attachments

  • untitled.webp
    untitled.webp
    82.1 KB · Views: 11
ok thanks no I had never used this function.
I send you the dwg file of a block with the attribute link
and a file with four blocks inserted.
If you can handle something, I'd need it urgently.
 

Attachments

ok thanks no I had never used this function.
I send you the dwg file of a block with the attribute link
and a file with four blocks inserted.
If you can handle something, I'd need it urgently.
will the link always be javascript:fmp_drawings(','','',''',''cod_access','','')?

Try to see if that's okay?

extract files

load the macro, tools->macro->load_project->hyper.dvb

open the file you want to process


instruments-> macro-> macro->.///hyper.dvb!modulo1.hyper and executors

you are required the selection of objects (blocks to change) selections and sending, of course not knowing if all the blocks are called the same way I did not set the filter on the name, but you can do quietmnete.

then check if the link is ok!

Let me know.
 

Attachments

will the link always be javascript:fmp_drawings(','','',''',''cod_access','','')?

Try to see if that's okay?

extract files

load the macro, tools->macro->load_project->hyper.dvb

open the file you want to process


instruments-> macro-> macro->.///hyper.dvb!modulo1.hyper and executors

you are required the selection of objects (blocks to change) selections and sending, of course not knowing if all the blocks are called the same way I did not set the filter on the name, but you can do quietmnete.

then check if the link is ok!

Let me know.
ok it all works wonder, I made a small modification in addition to the hyperlink string, problem centered and solved.
My colleague was so happy that she said she fell in love:
In any case in these days I have realized how many things I have yet to learn about autocad & co, I would be interested to try to deepen the programming in vba, you know how to give me some tips.
 
ok it all works wonder,

giusto per copletezza e visto che mi sembra di aver capito che sai mettere mano al codice, ti allego una piccola modifica, il file che ti avevo mandato non era aggiornato.

option explicit
public sub hyper()

dim filtertype(0) as integer
dim filterdata(0) as variant
dim sset as acadselectionset
dim element as acadblockreference
dim array1 as variant
dim url as string
dim i as integer
dim valore as string
dim cod_access as string
dim hyperlinks as acadhyperlinks
dim hyperlink as acadhyperlink

on error resume next
if not isnull(thisdrawing.selectionsets.item("element")) then
set sset = thisdrawing.selectionsets.item("element")
sset.delete
end if

set sset = thisdrawing.selectionsets.add("element")

filtertype(0) = 0
filterdata(0) = "insert"

sset.selectonscreen filtertype, filterdata


for each element in sset

if element.hasattributes then

array1 = element.getattributes
'check the access code and set the link

for i = lbound(array1) to ubound(array1)

if array1(i).tagstring = "cod_access" then cod_access = array1(i).textstring

next i

'link

url = "javascript:fmp_drawings('','','','" & cod_access & "','',' ')"
'Yes the link is already inserted in the link field then the url string is copied from the attribute.

for i = lbound(array1) to ubound(array1)

if array1(i).tagstring = "link" then
if array1(i).textstring <> "" then url = array1(i).textstring
end if

next i

set hyperlinks = element.hyperlinks
set hyperlink = hyperlinks.add("punti_luce_esterni")
hyperlink.url = url
hyperlink.urldescription = url
end if

next element

end sub


decidi tu queli delle due condizioni usare, se utilizzare la stringa dell'attributo come link oppure se costruirla in base al cod_access.

puoi eliminare tranquillamente una delel due, decidi tu.
ok it all works wonder, I made a small modification in addition to the hyperlink string, problem centered and solved.
My colleague was so happy that she said she fell in love:
In any case in these days I have realized how many things I have yet to learn about autocad & co, I would be interested to try to deepen the programming in vba, you know how to give me some tips.
the vba is destined to die in autocad environment, from the 2010 version you have to install it apart from the site of the autodesk, which, no longer guarantees the support and development of this technology, if you have to throw yourself in the programming of autocad you better start with the right foot and pass to .net the new environment of development of autocad that is vb or c# does not matter. This is the new road.

cmq if you want for the vba there is a discrete documentation already in kit of autocad and many practical examples. then for any clarification we are here.

I don't know if she fell in love with me or you... cmq tell her to subscribe to the forum and put in line... here are already jersey and messed up that court me!!! :hahahahah::36_9_2::hahahahahah:
 
Last edited by a moderator:
Thanks for the change, for now what you sent was ok anyway you never know for next time we archive everything
ps the colleague insists on your contact:36_9_3:, what do I do:36_6_6:
there
 
Thanks for the change, for now what you sent was ok anyway you never know for next time we archive everything
ps the colleague insists on your contact:36_9_3:, what do I do:36_6_6:
there
as mentioned above... cad3d.it and then you have to see it first with jersey and fucked.... :36_1_12:
 
as mentioned above... cad3d.it and then you have to see it first with jersey and fucked.... :36_1_12:
:36_6_10: attention, not "trampling my callo"....then out the shape hands, in two... we are more than enough!:36_1_12:
 
Oi, you look like a fierce girl, just to facilitate the colleague............. I could volunteer to distract you.:3513:
there
 
Oi, you look like a fierce girl, just to facilitate the colleague............. I could volunteer to distract you.:3513:
there
:3559: on this forum (you read the rules well) there is a ban on reproduction between architects... .
:hahahahah: hahahahah:
 

Forum statistics

Threads
44,997
Messages
339,767
Members
4
Latest member
ibt

Members online

No members online now.
Back
Top