.NET

.NET

Reply
Mentor
247 Posts
6 Kudos
Registered: ‎03-11-2008
Post 11 of 14

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
91 Posts
3 Kudos
Registered: ‎02-18-2010
Post 12 of 14

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*
2,142 Posts
255 Kudos
Registered: ‎04-29-2006
Post 13 of 14

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
91 Posts
3 Kudos
Registered: ‎02-18-2010
Post 14 of 14

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 interested in helping shape the future of the Autodesk Community? To participate in this brief usability study, please click here. Your time and input is greatly appreciated!