New Member
Posts: 2
Registered: ‎06-29-2005
Message 1 of 1 (80 Views)

DWF Publish Reactor

80 Views, 0 Replies
06-29-2005 06:13 AM
Anyone knows how to set custom property by publish reactor
correctly? I have the code below,but it does not work! Help me
private static void Publisher_BeginEntity(object sender, PublishEntityEventArgs e)

ObjectIdCollection ids=new ObjectIdCollection();
Entity ent=e.get_Entity();
ObjectId id=ent.Id;
if (e.GetEntityNode(id,ids)==1) return;
int nodeid=e.GetNextAvailableNode();

DwfNode node=new DwfNode(nodeid,"dddd");
EPlotPropertyBag propbag=
new EPlotPropertyBag();

EPlotProperty prop1=new EPlotProperty("CCC","AAA");



if (!e.AddPropertyBag(propbag))
MessageBox.Show("bag error");

if (!e.AddNodeToMap(id,ids,nodeid))
MessageBox.Show("map error\n");

if (!e.AddPropertiesIds(propbag,node))
MessageBox.Show("ids error:"+

It report ERRNO=2

Please Help me!
Post to the Community

Have questions about Autodesk products? Ask the community.

New Post
Do you have 60 seconds to spare? The Autodesk Community Team is revamping our site ranking system and we want your feedback! Please click here to launch the 5 question survey. As always your input is greatly appreciated.