.NET

Reply
Mentor
Posts: 244
Registered: ‎03-11-2008
Message 11 of 14 (180 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
Posts: 72
Registered: ‎02-18-2010
Message 12 of 14 (69 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*
Posts: 1,980
Registered: ‎04-29-2006
Message 13 of 14 (61 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
Posts: 72
Registered: ‎02-18-2010
Message 14 of 14 (49 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.

You are not logged in.

Log into access your profile, ask and answer questions, share ideas and more. Haven't signed up yet? Register

Announcements
Welcome to the new Autodesk Community!
If this is your first visit, click here to get started and make the most of the Community. Let us know what you think of the new experience in the Community Feedback Forum.

Need installation help?

Start with some of our most frequented solutions to get help installing your software.

Ask the Community