Recent Posts

Pages: [1] 2 3 ... 10
1
AutoLISP (Vanilla / Visual) / Re: Lisp for this?
« Last post by framednlv on Today at 06:46:51 PM »
We use design center
Code: [Select]
(defun c:EE ()(command "_adcnavigate" "X:/Standards/Disciplines/E/")(setvar 'clayer "0")(print "layer '0' is now current")(princ))
(defun c:MM ()(command "_adcnavigate" "X:/Standards/Disciplines/M/")(setvar 'clayer "0")(print "layer '0' is now current")(princ))
(defun c:PP ()(command "_adcnavigate" "X:/Standards/Disciplines/P/")(setvar 'clayer "0")(print "layer '0' is now current")(princ))
2
OpenDCL / Re: HTML Opens in Internet Explorer, not Edge
« Last post by Lonnie on Today at 04:50:06 PM »
I think all you'll have to do is change your default application for opening that type of file.
Open the Start menu type for Default apps
Find the app you want to launch things in then add the extension type to the list.
3
OpenDCL / HTML Opens in Internet Explorer, not Edge
« Last post by KKirk on Today at 04:04:46 PM »
I'm working on a Dialog that will show a webpage, but when the dialog navigates to the URL it comes up as a page prompting me to upgrade my browser to Edge (It's a sharepoint page which apparently won't display on Explorer). Is there a way to have the HTML box display as an Edge browser and not Explorer?
4
AutoLISP (Vanilla / Visual) / Re: Triangulation (re-visited)
« Last post by w64bit on Today at 03:55:01 PM »
v0.6.7
I tried to set the "Generate Voronoi" checkbox already checked when starting program, using value = 1, but it's not working.
Am I missing something?
5
Same result. It tries to open the link

https://teams.company/revit//revitblog/PublishingImages/New%20user%20Packet/cheatsheet.pdf

in edge then launches bluebeam.

If I do it with a unc I am fine.
6
AutoLISP (Vanilla / Visual) / Re: 3d polyline splitting
« Last post by mariolino0099 on Today at 12:16:02 PM »
Thanks Ribarm,

your code for split now works great !!!
I also tried the diet code that eliminates collinear points works very well.
One suggestion I would make different for this command would be the introduction of a length to be requested from the user at the beginning of the command, for collinear vertex distances smaller than the entered size such intermediate vertices are deleted in the case of larger distances the intermediate vertices remain.

 :-) :-) :-)
7
.NET / Re: Linetype scaling differs for unknown reason
« Last post by damien_conroy on May 12, 2024, 03:00:28 PM »
Erasing the linetypes caused problems with the layers defaulting back to linetype continuous, so I just used the editor.command() for reloading linetypes.

adapted from https://adndevblog.typepad.com/autocad/2012/03/how-to-reload-the-line-type-in-autocad-using-autocadnet-api.html
Code: [Select]
            if (bReload)
            {
                //dataArry[0] = "-linetype Load Dashed\nacad.lin\nYes\n ";
                ed.Command("_.linetype", "Load", "Dashed", "acad.lin", "Yes", "");
            }
            else
            {
                //dataArry[0] = "-linetype Load Dashed\nacad.lin\n ";
                ed.Command("_.linetype", "_Load", "_Dashed", "_acad.lin", "");
            }

8
.NET / Re: Linetype scaling differs for unknown reason
« Last post by damien_conroy on May 11, 2024, 04:54:21 PM »
the code is pretty sprawling/ugly so I wouldn't know what to include, and I think this might be more of an Autocad skills problem than coding skills problem.
Simplified process for plugin:
Cleanup and prep drawing
calculate size of plot
create layout, control the size by Viewport.ViewHeight (copy paste from Kean Walmsley)
do the plugin functionality, includes drawing some new polyline 2d

edit: found the solution, wasn't the code so I'm removing the code snippet, unsure of what I'm allowed to share. The problem was solved by erasing and reloading the linetypes, not sure of why that helped.
9
.NET / Re: Linetype scaling differs for unknown reason
« Last post by kdub_nz on May 11, 2024, 04:23:26 PM »
Hi Damien,
We'd probably need to see the code you're using.

I assume you are saving the drawing after you make the changes ?

I haven't done any plotting to .png, so have no knowledge of pitfalls in that regard.

Regards,

added:
Is there any common factor for the files that fail to plot sucessfully ?
10
.NET / Linetype scaling differs for unknown reason
« Last post by damien_conroy on May 11, 2024, 10:43:45 AM »
I am using a c# plugin to do some changes to a file and then prepare a properly scaled viewport for plotting a png, then in a batch script I'm applying this to thousands of files with accoreconsole.exe where I load the file, apply the plugin, and plot.

On some files the linetypescaling isn't coming out as expected and I can't find the reason for this. LTSCALE and PSLTSCALE are the same on all files, what other settings should I be looking at?

edit: forgot to add, the linetype scaling is different after plotting from accoreconsole than it is after running the plugin in editor, that's another head scratcher for me, is it connected to the first issue? 
Pages: [1] 2 3 ... 10