TheSwamp

Code Red => ARX Programming => Topic started by: ramkumar on February 03, 2011, 06:22:04 AM

Title: SDS Programming
Post by: ramkumar on February 03, 2011, 06:22:04 AM
Hi all,

Can any one help me out to make my first Application on intellicad using SDS with C++.

Thanks,
Kumar.
Title: Re: SDS Programming
Post by: It's Alive! on February 03, 2011, 08:30:29 AM
Welcome to the swamp!
I think there are a few samples laying around, are you doing Intellicad?
Title: Re: SDS Programming
Post by: ramkumar on February 03, 2011, 10:53:34 PM
Yes I am doing intellicad.
To make my routines faster i want to step in to SDS from lisp.

But I am not getting good tutorial where to start.
Title: Re: SDS Programming
Post by: It's Alive! on February 04, 2011, 12:07:31 PM
Start here...
http://www.engr.uvic.ca/~mech410/ACAD_and_C/ads_tutorials.html

it's a bit dated but it will get you started, just switch the ADS prefix with SDS.
post if you have questions along the way.
Title: Re: SDS Programming
Post by: ramkumar on February 07, 2011, 10:01:53 AM
HI,

Thanks for the link.
I seems good. I will go through this and back with questions (if any).


Kumar. :lol:
Title: Re: SDS Programming
Post by: ramkumar on February 25, 2011, 12:21:27 AM
Hi,

I wrote my first program in sds successfully.
I am able to write functions that return values.
But i am not clear how to pass arguments to the sds functions and how to use the those in program.

all my functions are working when i used like this

Code: [Select]
static int Ess_chkdir(struct sds_resbuf *rb)
if i pass arguments in place of sds_resbuf, my function getting error.

Is there a way to pass arguments through the result buffer and grab those values & use in program.


Thanks,
Kumar.

Title: Re: SDS Programming
Post by: It's Alive! on February 26, 2011, 01:15:41 AM
How are you building/reading your resbuf?
Title: Re: SDS Programming
Post by: ramkumar on February 28, 2011, 04:03:12 AM
Hi,

I am not building any result buff here.
I am just using as shown below.

Code: [Select]
static int Ess_chkdir(struct sds_resbuf *rb)
{

code here

}


Quote
How are you building/reading your resbuf?

Form your reply i understood that we need to build a result buff based on the arguments we need to pass.
If i am not wrong please tell me, how to build a result buff to read an entity and a point from lisp and use in sds programs.

Thanks,
Kumar.
Title: Re: SDS Programming
Post by: ramkumar on March 11, 2011, 03:00:32 AM
Good news :lol:

I got a template for intellicad sds programming.
Just follow the test file in the attachment.
While creating a new project it will have an option for sds application.
It automatically creates dataentrypoint and main functions. You just need to write your command functions.

Cheers....
Kumar.
Title: Re: SDS Programming
Post by: ramkumar on March 11, 2011, 03:04:23 AM
Sorry i have not mentioned about editor.
You need to use VC++ 6.0 editor to work intellicad wizard.

Thanks,
Kumar