Author Topic: SDS Programming  (Read 4410 times)

0 Members and 1 Guest are viewing this topic.

ramkumar

  • Guest
SDS Programming
« 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.

It's Alive!

  • BricsCAD
  • Needs a day job
  • Posts: 6934
  • AKA Daniel
Re: SDS Programming
« Reply #1 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?

ramkumar

  • Guest
Re: SDS Programming
« Reply #2 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.
« Last Edit: February 04, 2011, 12:36:50 AM by ramkumar »

It's Alive!

  • BricsCAD
  • Needs a day job
  • Posts: 6934
  • AKA Daniel
Re: SDS Programming
« Reply #3 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.

ramkumar

  • Guest
Re: SDS Programming
« Reply #4 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:

ramkumar

  • Guest
Re: SDS Programming
« Reply #5 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.


It's Alive!

  • BricsCAD
  • Needs a day job
  • Posts: 6934
  • AKA Daniel
Re: SDS Programming
« Reply #6 on: February 26, 2011, 01:15:41 AM »
How are you building/reading your resbuf?

ramkumar

  • Guest
Re: SDS Programming
« Reply #7 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.

ramkumar

  • Guest
Re: SDS Programming
« Reply #8 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.

ramkumar

  • Guest
Re: SDS Programming
« Reply #9 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