.NET

.NET

Reply
Mentor
matus.brlit
Posts: 246
Registered: ‎03-11-2008
Message 11 of 14 (236 Views)

Re: synchronicity, friends, & acedcommand

06-03-2012 11:57 PM in reply to: _gile

thanks, it works for commands, but I can't find the right syntax for functions

 

i used a workaround, where i defined a command that just calls the function i need

Valued Contributor
kcimos
Posts: 91
Registered: ‎02-18-2010
Message 12 of 14 (125 Views)

Re: synchronicity, friends, & acedcommand

03-07-2014 02:20 PM in reply to: matus.brlit

in 2014, for the Case ObjectId[],

this line is givng a run time error (unsupported type in command() method )"

 

resbuf.Add(New TypedValue(CInt(LispDataType.ObjectId), id)

 

Not sure if this case ever woked in previous versions. This is a for a new routine for civil 3d featurelines

*Expert Elite*
_gile
Posts: 2,131
Registered: ‎04-29-2006
Message 13 of 14 (117 Views)

Re: synchronicity, friends, & acedcommand

03-07-2014 02:43 PM in reply to: kcimos

Hi,

 

Tony Tanzillo shared a wrapper for the undocumented runCommand() method which is safer the P/Invoking acedCmd.

Have a look here.

Gilles Chanteau
Valued Contributor
kcimos
Posts: 91
Registered: ‎02-18-2010
Message 14 of 14 (105 Views)

Re: synchronicity, friends, & acedcommand

03-07-2014 08:45 PM in reply to: matus.brlit

so actually my problem was that I was sending a 3d point object to the _aeccbreakfeatureline command, which expects a station, so it nothing to do with the code in question.

Post to the Community

Have questions about Autodesk products? Ask the community.

New Post
Announcements
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.