Block Reference Hyperlink property in AutoCAD 2014 with VBA? -


i have .dwg file has hundreds of block references. trying create hyperlink pdf file of block references. pdf on d drive.

for example, names of block refernece are: '2:test', '26:test', '234:test'. hyperlink each point be: '2:test' hyperlink d:\reports\file-002.pdf; '26:test' hyperlink d:\reports\file-026.pdf; '234:test' hyperlink d:\reports\file-234.pdf.

from block references number before ':', , matching pdf 'file-' followed number before ':' in 3 digits. there lot of these hands, , think can program this.

i have enough basic programming knowledge manipulate string number , convert in 3 digits. question have and/or need how cycle through each block reference(for loop) on file , able write hyperlink property? possible?

before coming here kind of looked @ these links did not prove helpful: link1; link2; link3

thanks hints

update

private sub commandbutton1_click()     dim readdata string      open "c:\desktop\files\designfile.dwg" input #1      until eof(1)        line input #1, readdata        msgbox readdata 'adding line read whole line, not first 128 positions      loop      close #1  end sub 

you can try this:

dim stringinput  stringinput = "2:test', '26:test', '234:test"  stringsplit = split(stringinput, ",")  = 0 ubound(stringsplit)      debug.print (stringsplit(i)) next 

outputs:

2:test'

'26:test'

'234:test


Comments

Popular posts from this blog

java - nested exception is org.hibernate.exception.SQLGrammarException: could not extract ResultSet Hibernate+SpringMVC -

sql - Postgresql tables exists, but getting "relation does not exist" when querying -

asp.net mvc - breakpoint on javascript in CSHTML? -