Hi all,
I have a symbol file that I need to add to a drawing using D4D and then create one or more entities based on the symbol.
The symbol file is located at:
C:\DataCAD 12\Symbols\MySymbol.dsf
Using sym_read, I've managed to add the symbol to the drawing, but I can't figure out how to create the entity.
I've tried this and other variations:
But none of them seem to work. Does anyone have any ideas or an example of how to do it correctly?
By the way, it seems that if there is another symbol in the symbol library with the same name (e.g, MySymbol), it will ALSO be added to the drawing, even though a full path is specified in sym_read. Does that make sense?
Regards,
shovavnik
I have a symbol file that I need to add to a drawing using D4D and then create one or more entities based on the symbol.
The symbol file is located at:
C:\DataCAD 12\Symbols\MySymbol.dsf
Using sym_read, I've managed to add the symbol to the drawing, but I can't figure out how to create the entity.
I've tried this and other variations:
Code: Select all
symread('C:\DataCAD 12\Symbols\MySymbol', 'MySymbol', sym);
ent_init(ent, entsym);
ent.symstart := sym.addr;
ent_add(ent);
But none of them seem to work. Does anyone have any ideas or an example of how to do it correctly?
By the way, it seems that if there is another symbol in the symbol library with the same name (e.g, MySymbol), it will ALSO be added to the drawing, even though a full path is specified in sym_read. Does that make sense?
Regards,
shovavnik