.NET

Reply
Mentor
matus.brlit
Posts: 246
Registered: ‎03-11-2008
Message 11 of 14 (232 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 (121 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,114
Registered: ‎04-29-2006
Message 13 of 14 (113 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 (101 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
Are You Going To Be @ AU 2014? Feel free to drop by our AU topic post and share your plans, plug a class that you're teaching, or simply check out who else from the community might be in attendance. Ohh and don't forgot to stop by the Autodesk Help | Learn | Collaborate booths in the Exhibit Hall and meet our community team if you get a chance!