how attach user data to an element ??

Status
Not open for further replies.

sylvain caillet

Usenet Archive
Joined
Jul 17, 2001
Messages
64
Reaction score
0
Hi,

With MS J or V8, i have to attach a user defined variable (a structure) to all elements in my 2D dgn. How many ways do you know to do that ??

I've tried to use tags and it works fine in MDL but i don't find the way to attach a user val to a tag with JMDL (the TagDef class doesn't have a method to add an instance of a user class or a pointer to a user structure void*).

Thanks you for your help.

Regards

Sylvain Caillet
 
To learn the how to attach user data linkages to an element I would start with the Circuit example that is delivered with MicroStation. After that you should request a userdata linkage ID from Bentley Support so you can uniquely identify the userdata. The key functions are the mdlLinkage functions and are well documented.

HTH,
mark anderson

"Sylvain Caillet" wrote:

Hi,

With MS J or V8, i have to attach a user defined variable (a structure) to all elements in my 2D dgn. How many ways do you know to do that ??

I've tried to use tags and it works fine in MDL but i don't find the way
to
attach a user val to a tag with JMDL (the TagDef class doesn't have a
method
to add an instance of a user class or a pointer to a user structure
void*).
Thanks you for your help.

Regards

Sylvain Caillet
 
Status
Not open for further replies.

Latest threads

Back
Top