.NET
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

hyperlinks on table entries

1 REPLY 1
Reply
Message 1 of 2
Anonymous
290 Views, 1 Reply

hyperlinks on table entries

How does one add hyperlinks to table entries, like the sheet index
generated by the sheet set manager?
When constructing a table, I use "setstring" to put text into cells,
but this function returns void, so unfortunately I cant directly use
this. So, after doing that I tried to get an object id of the new MText
line, and cast it to an MText object, like the following, but no luck.

//this gives me the object id just fine
ObjectId objid = myTable.FieldId(1, 1);
//this gives exception invalid object id
DBObject dBaseObj = trans.GetObject(objid, OpenMode.ForRead);
//so obviously this line will bomb
MText mt = dBaseObj as MText;
//this gives exception invalid object id too
MText mt = (MText)trans.GetObject(objid, OpenMode.ForRead);
//this gives exception invalid object id too
Entity ent = (Entity)trans.GetObject(objid, OpenMode.ForRead, false);
//so again this obviously bombs as well
if (ent is MText)
{
hyperlinks = ent.Hyperlinks;
}

What am I overlooking here?
Perry
1 REPLY 1
Message 2 of 2
Anonymous
in reply to: Anonymous

So no one has done this?

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk DevCon in Munich May 28-29th


Autodesk Design & Make Report

”Boost