.NET

Reply
Mentor
matus.brlit
Posts: 246
Registered: ‎03-11-2008
Message 11 of 14 (222 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 (111 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,091
Registered: ‎04-29-2006
Message 13 of 14 (103 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 (91 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.

Need installation help?

Start with some of our most frequented solutions or visit the Installation and Licensing Forum to get help installing your software.