Recent Posts

Pages: 1 ... 8 9 [10]
91
.NET / Re: C# + Unity 3D dev job in London (or remote)
« Last post by CADbloke on July 05, 2020, 04:37:39 AM »
Looks like Autodesk research is hiring too: https://www.keanw.com/2020/07/autodesk-research-is-hiring-experienced-software-developers-and-designers.html

Did somebody mention a job board?
92
AutoLISP (Vanilla / Visual) / Re: (Challenge) To draw the shortest lwpolyline
« Last post by ribarm on July 05, 2020, 01:36:18 AM »
shorthpath.vlx results beaten by TSP.lsp at about 300 sec...
TSP.lsp results beaten by TSP-depth.lsp at about 5.5 hours...

http://www.theswamp.org/index.php?topic=30434.msg591042#msg591042
This results were beaten...

93
AutoLISP (Vanilla / Visual) / Re: (Challenge) To draw the shortest lwpolyline
« Last post by ribarm on July 04, 2020, 01:38:14 PM »
From fast routines to implementation of depth permutation parameter...
So your remark (John) is that it is slow...
Well, it can always be slower, lol...

But in fact, I am satisfied now with this depth version... It should yield the same results as previous with depth=3, but if you put a little higher (for ex. 6), IMO it will be very close to exact solution, no matter how long does it take to finish...
I've tested on my tricky example with 11 points and it did correct at about 40 seconds with my PC - this is still faster than doing full permutations... In routine I hard coded - preferable number 3, but maybe it's actually 6, if you have more time...

Regards, M.R.
94
.NET / Re: Transient graphics not showing Text
« Last post by CADbloke on July 03, 2020, 07:02:16 PM »
.SetDatabaseDefaults() can avoid some of these kinds of hassles. Not all, just some.
95
.NET / Re: How to assign a variable name inside autocad to 'coded variable'
« Last post by badjo_5 on July 03, 2020, 01:02:13 PM »
Picture.

I am using NTS for creating small topolgyes and stuff..
96
AutoLISP (Vanilla / Visual) / Re: Insert image GeoTiff
« Last post by ismailcetin on July 03, 2020, 06:29:51 AM »
Dear Rod,

I find my way with this link

https://stackoverflow.com/questions/41605682/how-to-create-world-file-in-c-sharp-from-a-tiff-image

thank you for the nice answer

ismail
97
.NET / Re: How to assign a variable name inside autocad to 'coded variable'
« Last post by huiz on July 03, 2020, 01:59:28 AM »
You mean like the GROUP command?
98
AutoLISP (Vanilla / Visual) / Re: Insert image GeoTiff
« Last post by Rod on July 02, 2020, 06:58:20 PM »
Hi ismailcetin,

you can convert coordinates using Lisp functions built into Autocad Map. What version of autocad are you using? If you are on subscription I think Autocad map is included.
To convert a single point you need to use

ade_projsetsrc
ade_projsetdest
ade_projptforward

Let me know how you go. Happy to help more if I can.

Cheers, Rod
99
AutoLISP (Vanilla / Visual) / Re: (Challenge) To draw the shortest lwpolyline
« Last post by ribarm on July 02, 2020, 06:17:40 PM »
I totally discarded checking of angles and let it process all points in list by triplets of points... Also I used (while) as with (foreach) list is not updating during calculations inside sub... I know that this is now slower then it was and perhaps it gives the same results, but in fact it's better coded - more reliable in terms of what it is doing... Also all subs are needed except newly added (ang) and (f2) that are looking for angles, but I leaved them as there are some comments related to them... So nothing is removed only added and commented those things that aren't necessity... In attachment is my mod. version that I use now...

M.R.

[EDIT : I've replaced 2 subs from chlh_jd's codes with newer more obvious versions that are shorter... But still chlh_jd's subs are faster by my testings, so I just added them for comparison reasons and leaved active chlh_jd's and my versions deactivated... There were 3 downloads till now...]
100
.NET / How to assign a variable name inside autocad to 'coded variable'
« Last post by badjo_5 on July 02, 2020, 06:16:39 PM »
I don't even know how to ask a question, so this is the explanation of what i want to achieve. I try to do something like Civil: when I create a point group (or topology, or surface, or....) I name that point group, and then within the document I can use the name of the point group (or ...), not the name of some variable that is given inside the application. Then I call my Command with that created name as an input parameter.
Or a simpler example: a list of all created topologies in the drawing.
This should probably be some kind of collection or dictionary maybe.
Pages: 1 ... 8 9 [10]