Author Topic: RFQ for custom Autolisp  (Read 3763 times)

0 Members and 1 Guest are viewing this topic.

chardho

  • Guest
RFQ for custom Autolisp
« on: July 10, 2007, 05:49:23 PM »
I am needing to have an autolisp script written relatively quickly but have no programming experience. I am looking for anyone who is interested to give me a quote to write the program. Hopefully this is appropriate for this site...if not please tell me where I can find help. Below is a description of the requirements of the autolisp program.

I am in need of an AutoLisp program that will do the following.



 

Read


Read a .csv file with the following information   

1. A filename to be matched to a cad drawing block located in a separate folder
2. A unique identifier, because many of the filenames will be repeated

 

(the output of the unique identifier is a little strange, it basically takes the block name and adds a number on the end of it. If this is a convention that is goofy to deal with, I can manipulate the .csv to simply have an index number for each separate block)

 

3. Values from a 4x4 transformation matrix. The values for x, y, z, position and x, y, z, rotation will be read from this 4x4 matrix.

 

(the original output of the matrix is in transformation matrix form as shown in the attached picture, therefore the degree/radian measures for each axis would have to be backed out. This information can also be manipulated in excel to output the radian/degree measures of the rotations if needed.)



 

Import

 

The lisp program will then need to use this information to import a cad drawing block into an open project and place the drawing block in the appropriate x, y, z location as well as in the proper orientation as per the rotation values. I am aware that the import function in Autocad allows for a z rotation of a block upon import, but I don’t know how to handle the other axes.

 

          (the cad block name will match the file name from the .csv. The cad drawing blocks will be preconfigured and located in a drawing folder in an unspecified location)

 


That is basically the gist of it. Below is the current output from the .csv file. This can be different if needed…it would simply add a secondary step to the process.


.csv output

 

back_joist_assem_wood_rail_left,back_joist_assem_wood_rail_left,0.1558391847,-0.9839298883,0.0871557427,29.3547489634,0.9851181838,0.1483365821,-0.0868240888,63.1224327486,0.072500431,0.0993893022,0.9924038765,-1.0672036235,0,0,0,1.

 

 

back_joist_assem_wood_rail_left2,back_joist_assem_wood_rail_left,0.1558391847,-0.9839298883,0.0871557427,26.8987687033,0.9851181838,0.1483365821,-0.0868240888,63.4875881062,0.072500431,0.0993893022,0.9924038765,-0.8282252928,0,0,0,1.

 

 

back_joist_assem_wood_rail_bl,back_joist_assem_wood_rail_bl,0.1558391847,-0.9839298883,0.0871557427,24.4427162496,0.9851181838,0.1483365821,-0.0868240888,63.8525094444,0.072500431,0.0993893022,0.9924038765,-0.5913037755,0,0,0,1.

 

 

right_joist_assem_wood_rail_front,right_joist_assem_wood_rail_front,0.1558391847,-0.9839298883,0.0871557427,32.3356782193,0.9851181838,0.1483365821,-0.0868240888,65.3137719209,0.072500431,0.0993893022,0.9924038765,-1.1253865051,0,0,0,1.

 

 

right_joist_assem_wood_rail_front2,right_joist_assem_wood_rail_front,0.1558391847,-0.9839298883,0.0871557427,32.7329625872,0.9851181838,0.1483365821,-0.0868240888,67.7700012911,0.072500431,0.0993893022,0.9924038765,-0.9453849536,0,0,0,1.

 

 

 

Here are the descriptions of the data,

 

1st         Unique id for the object file, This is simply the filename of the file that was exported with an indexer dumped on the end. Used for unique identification of repeated instances. If this is a pain I can also index each object in the csv

 

2nd        filename of the exported object with the extension stripped. This would be used to match to the .dwg block to be inserted.

 

3rd         Rotation matrix. The rest of the values are the A1, A2, A3, A4, B1, B2, B3, B4, C1, C2, C3, C4, D1, D2, D3, D4 values in a the 4x4 rotation matrix shown in the attached .jpg. Once again, I have a fair amount of latitude with the output of the .csv so the conversion of the x, y, and z, rotation angles can be done and output in the .csv…it will just require a secondary step.


T.Willey

  • Needs a day job
  • Posts: 5251
Re: RFQ for custom Autolisp
« Reply #1 on: July 10, 2007, 05:57:35 PM »
No attached jpg file.
Tim

I don't want to ' end-up ', I want to ' become '. - Me

Please think about donating if this post helped you.

Kerry

  • Mesozoic relic
  • Seagull
  • Posts: 11654
  • class keyThumper<T>:ILazy<T>
Re: RFQ for custom Autolisp
« Reply #2 on: July 10, 2007, 05:59:40 PM »
Sounds like an interesting Project.
If I wasn't currently busy I'd enjoy having a look at it.

Good fortune finding a developer.

... and welcome to the swamp.
/// kwb


kdub, kdub_nz in other timelines.
Perfection is not optional.
Everything will work just as you expect it to, unless your expectations are incorrect.
Discipline: None at all.

chardho

  • Guest
Re: Sorry...forgot the jpg
« Reply #3 on: July 10, 2007, 06:10:22 PM »
Sorry, forgot to attach the jpg of the matrix

chardho

chardho

  • Guest
Re: RFQ for custom Autolisp
« Reply #4 on: July 10, 2007, 06:13:39 PM »
No attached jpg file.

Sorry...my bad...I have replied with the jpg attached...thanks

chardho

T.Willey

  • Needs a day job
  • Posts: 5251
Re: RFQ for custom Autolisp
« Reply #5 on: July 10, 2007, 06:21:05 PM »
No attached jpg file.

Sorry...my bad...I have replied with the jpg attached...thanks

chardho
No problem.  :-)

Edit:  If I'm reading this right, you want to insert the block (item 2 per line) into the current drawing, place by the rotation matrix (item 3 - till end per line)?
« Last Edit: July 10, 2007, 06:26:45 PM by T.Willey »
Tim

I don't want to ' end-up ', I want to ' become '. - Me

Please think about donating if this post helped you.

chardho

  • Guest
Re: RFQ for custom Autolisp
« Reply #6 on: July 10, 2007, 06:46:42 PM »
No attached jpg file.

Sorry...my bad...I have replied with the jpg attached...thanks

chardho
No problem.  :-)

Edit:  If I'm reading this right, you want to insert the block (item 2 per line) into the current drawing, place by the rotation matrix (item 3 - till end per line)?

If I understand you correctly you are right, The drawing blocks would be preconfigured and kept in a folder somewhere specified by the user. The program would read item 2 (the filename with ext stripped) and insert the corresponding block according to the rotation matrix (item 3 till the end)

LE

  • Guest
Re: RFQ for custom Autolisp
« Reply #7 on: July 10, 2007, 06:50:11 PM »
If I understand you correctly you are right, The drawing blocks would be preconfigured and kept in a folder somewhere specified by the user. The program would read item 2 (the filename with ext stripped) and insert the corresponding block according to the rotation matrix (item 3 till the end)

Welcome!

Some curiosity.... (for now)

Why the matrix values?
What type of blocks are these?
What is the discipline?

chardho

  • Guest
Re: RFQ for custom Autolisp
« Reply #8 on: July 10, 2007, 07:03:02 PM »

Welcome!

Some curiosity.... (for now)

Why the matrix values?
What type of blocks are these?
What is the discipline?
[/quote]

We have a client with a modular system that uses a set of standard parts. We are a developer of 3d Scanning technology. We will be scanning a structure (a bridge per se), and then constructing their modular aparatus on a 3d representation of the bridge in our software. (we will be using 3d objects to represent their modular parts) We can then export the objects as points, with locations and rotations. These will be imported into Autocad using the lisp routine and placed and oriented correctly. The idea is to automate the assembly and BOM creation of the designed system.


T.Willey

  • Needs a day job
  • Posts: 5251
Re: RFQ for custom Autolisp
« Reply #9 on: July 10, 2007, 07:17:13 PM »
Should be fun for some of the professional programmers here.  The only problem I see is locating the folder where the blocks are stored.  If there is going to be some sort of folder structure, then it would be better/easier to code.  I'll stop now, as I don't believe my skills are at the level of some of the masters here, but I will be watching.  :-)
Tim

I don't want to ' end-up ', I want to ' become '. - Me

Please think about donating if this post helped you.

MP

  • Seagull
  • Posts: 17750
  • Have thousands of dwgs to process? Contact me.
Re: RFQ for custom Autolisp
« Reply #10 on: July 10, 2007, 09:41:59 PM »
Sounds interesting Chardho. Some of the best in the world hang their hats here so I expect you'll find suitable help. Good luck with your project and welcome to theswamp.org.
Engineering Technologist • CAD Automation Practitioner
Automation ▸ Design ▸ Drafting ▸ Document Control ▸ Client
cadanalyst@gmail.comhttp://cadanalyst.slack.comhttp://linkedin.com/in/cadanalyst

uncoolperson

  • Guest
Re: RFQ for custom Autolisp
« Reply #11 on: July 11, 2007, 01:25:42 AM »
man, i wish i had autocad on this computer... and I wish the girl wouldn't start yelling at me "it's bed time dangit" here in an hour or so.

sounds like a good time, hope someone hits this up!

(maybe talk Chardho into a swamp donation if this get's done here)

LE

  • Guest
Re: RFQ for custom Autolisp
« Reply #12 on: July 11, 2007, 05:34:03 PM »
OK, did you find or contact someone, that is going to work on your routine? and if you did, was he or she a swamp member?

Note to Mark:
Can be possible to have a list in some place here (@ theswamp.org) of those professional swamp members that provide programming services?, or nope?

Thanks!

« Last Edit: July 12, 2007, 06:34:32 PM by LE »

Mark

  • Custom Title
  • Seagull
  • Posts: 28762
Re: RFQ for custom Autolisp
« Reply #13 on: July 11, 2007, 06:14:43 PM »
Note to Mark:
Can be possible to have a list in some place here (@ theswamp.org) of those professional swamp members that provide programming services?, or nope?

Absolutly! Do you want your own page or listed some where in here?
TheSwamp.org  (serving the CAD community since 2003)

chardho

  • Guest
Re: RFQ for custom Autolisp
« Reply #14 on: July 12, 2007, 06:29:05 PM »
OK, did you find or contact someone, that is going to work on your routine? and if you did, was he or she a swamp member?

Note to Mark:
Can be possible to have a list in some place here (@ theswamp.org) of those professional swamp members that provide programming services?, or nope?

Thanks!


I have found somebody to work on the routine, but through a different source. Thanks to everyone for your interest and help. I hope to be able to utilize this medium for future programming needs

Chardho