AutoCAD .NET :: Return Path To DLL Used In Netload
May 28, 2012Is there any way to return the path to the dll that has been used in Netload the addin application?
View 4 RepliesIs there any way to return the path to the dll that has been used in Netload the addin application?
View 4 RepliesIf you use the Create Envelope from Top Shape feature, and then later Release the Envelope you at first appear to get your original shape back.
But it's actually an object called a Mesh. While you can apply Fills and Strokes to this released Mesh, there are some things you can't do with it.
Like setting the Stroke to Inside or Outside. You also can't use this Mesh with the Pathfinder Operations.
Is there a way to return a released Envelope Mesh back a normal path?
I've got a firm of about 60 architects and we use a custom dll that loads on drawing open. the dll loads fine on all but one computer. even explicitly issuing the netload command and grabbing the dll manually does not work. it also does not work on other profiles on that computer (i tried an admin profile, even though the user is a local admin).
we're using .NET 4.0 on ACAD 2011
I'm having trouble with my command not loading via a netload in AutoCAD 2012 SP1 64bit running on Windows 7 64bit. It works on most of my user's computers, but on a couple of the computers it doesn't seem to be doing anything. I'm using Visual Studio 2010 for coding and debugging, but I don't have debugging software on the computer that is causing the problem. I've attached my commands class in it's entirety to this post. The dll resides local on the user's computer and is not in a network location. When I run the netload on the development machine or one of my other working users, I get the message boxes and the program seems to run fine, but on the computers that aren't working I get nothing. No errors, no message boxes, nothing.
View 9 Replies View Relatedi have a set of C# .net dlls (.net 3.5) which i used to load automatically in Autocad 2010. Everything was working perfectly but suddenly one fine day one of the dll stopped loading. So i tried loading it using netload command but doesn't work. Its not showing any messages after netloading and when i type commands of that dll it says unknown command. I tried putting a message box in the initialize of the dll but that message also not showing up.
View 5 Replies View RelatedI have custom menu items that call code in .DLL files that are loaded using Netload in the ACAD.LSP file. However, since upgrading to 2013, the DLLs don't seem to load and the menu links say the macros don't exist.
View 9 Replies View RelatedThe loaded file is a .dll written in Visual Basic.NET using Visual Studio 2010.
NETLOAD Cannot load assembly. Error details: System.BadImageFormatException:
Could not load file or assembly 'file:///C:Documents and SettingsdanMy
DocumentsVisual Studio
10ProjectsClassLibrary1ClassLibrary1objx86ReleaseClassLibrary1.dll' or
one of its dependencies. This assembly is built by a runtime newer than the currently loaded runtime and cannot be loaded.
I'm having some problems with drawing paths in Illustrator. Everytime I draw a new path, this new path shows up in the standard settings. The 'brush defenition' turns back to 'basic' and the 'variable width profile' back to 'uniform'. It would save me a lot of time if I could change those standard settings into what I prefer.
View 5 Replies View RelatedIs there a way to get an AssocVarible by specifying the name of the variable rather than iterating through all the Actions returned by the AssocNetwork.GetActions property?
View 2 Replies View RelatedI would like to return multiple objects from a function. can it be done? and how?
function DrawLines()as object
objline1 as new line
objline2 as new line
[..]
return 'objects'
[code]....
C3D 2010 user
I have a problem modeling intersection. This is first time I am modeling intersection. I have gone thru' and actually did all intersection tutorials offered by C3D and naturally I felt like I am ready for it.
But in real world I am not. I am trying to model intersection and I keep getting error as "Value on Wrong side of alignment to profile". I looked at target mapping and thinks so that all is okay (may be not). I am attaching snapshot of error message as well as plan view. I wanted to forward actual dwg but size is too large to post.
Point to note:This is Left lane driving setting. I realized this after I created alignment/profile/assemblies but before I tried intersection modeling.
I did 8 iterations before this post.
Arcticad gave me code to work out the right keywords to search for. The only google hit was a chinese website.I added it to his/her code but didn't delete any of the existing handlers just in case.
Imports Autodesk.AutoCAD.RuntimeImports Autodesk.AutoCAD.DatabaseServicesImports Autodesk.AutoCAD.ApplicationServicesImports AcApp = Autodesk.AutoCAD.ApplicationServices.ApplicationImports Autodesk.AutoCAD.EditorInput<Assembly: ExtensionApplication(GetType(VbExtApp))> Public Class VbExtApp Implements Autodesk.AutoCAD.Runtime.IExtensionApplication Private DocMan As DocumentCollection 'Initialize sub.
[code]....
I've noticed this annoying trait in AutoCAD 2012 when drawing a polar array that I hadn't noticed in previous versions. I used to get stuck in a loop having to repeatedly enter the number of items in the array trying to get it to move on to the next command prompt of what angle of fill I required.
Example
CMD = Enter number of items or [Angle between/expression] <4>:
<Type in 20 and hit Return key>
CMD = Enter number of items or [Angle between/expression] <4>:
<Type in 20 and hit Return key>
CMD = Enter number of items or [Angle between/expression] <4>:
<Type in 20 and hit Return key>
Ad infinitum...
I then discovered that this only seems to happen when the cursor is left over the centre of the array you clicked on. But if it's moved to one side the correct command prompt follows the Return key. This isn't intuitive as you have to leave go of the mouse to input the required number at the keyboard, so it tends to be wherever you just clicked, and you end up in the pointless loop.
Just wondering how I would return attributes of blocks in my drawing's XRefs?
I've come across one example that is in VB but no luck.
I currently have a list in a form that consists of all the XRefs in my drawing and I wish to return all blocks and attributes that are linked to the selected XRef.
I did a brief search in this forum on the Civil 3D 2012 Interactive Shaping Terrain package previewed by Autodesk in January/February 2012, and couldn't find any recent news on this package. Is it going to be released as an add-on sometime soon? Is it already available for download, and I'm simply not aware of it? Here's a link to the latest status of the package from AutoDesk on the issue (dated 2012):
[URL].......
The following gives me the first folder string, with no back-slashes, that the drawing exists in.
(setq FirstFolder
((lambda (/ tmpDir tmpPos)
(substr
(setq tmpDir (getvar "dwgprefix"))
(+ 2 (setq tmpPos (vl-string-search "\" tmpDir)))
(- (vl-string-search "\" tmpDir (1+ tmpPos)) (1+ tmpPos))))))
Is there a way to find the name of the second folder?
Is there a way to find the name of the third folder?
The string length of the characters for each of the first, second, third (and so on) folders are different, which means I can't count character using the "substr" function.
I am wondering if there is any way to 'find & replace' a carriage return; specifically to add one in. I have figured how to take it out.
the reason I want to do this, is because 'tcount' will increment, by the amount specified, for each line of mtext; I have multiple lines of 2 line mtext, and I want to 'tcount' one number in the first line of each instance of mtext.
Now, I know I can do it manually, and in fact I would have had it done almost an hour ago if had, but this issue crops up every now and again, where if there was a fix or work-around to the 'tcount' issue (such as somehow inserting a carriage return) my efficiency could be increased.. for example I could get through renumbering 30 instances of 2 or 3 line mtext across 15 different drawings..
How to Return Borrowed License From a Different Computer.
I ordered a new computer with C3D 2013 installed. I also had C3D on my old computer and had borrowed a license from our company’s server until the end of July. C3D has since been uninstalled from the old computer without first having the license returned. Now I don’t have a license for my new computer.
Is there some way of releasing the borrowed license from the old computer? If I reload C3D back on the old computer will it recognize the old borrowed license and allow me to release it?
I sometimes create parts while working in an assembly. This hasn't been an issue but something mysterious happened. Once I create my new part, to get back to the assembly ( turn off the transparency)
I typically press the Return button which is normally in the first tab (this example shows I created a sheet metal part)but for some reason the return button is now in the inspect Tab??I tried looking through the customize ribbon form and can't seem to put the button back into the first tab?
How I could create a label for the curb return grade as shown on the attached file. The label is on a curve.
View 6 Replies View RelatedTrying to diable the spacebar = (return last command) function!
commandlinehide does te job in the working interface, but a space in scriptmode (in the filename e.g.) still repeats last command!
I am trying to replace multiple instances of a multiline text entity throughout several drawings and can’t seem to find a good way to make this come to fruition. (must use carriage return to differentiate between other instances of the text) ie
Replace:
Name
Location
Date
Vs
Replace:
Name
I need it to replace the text in the instance that has multiple text lines, and not the name where the text is on it’s own. I have seen mention of using “u+000A” as a carriage return in older versions, but I can’t get it to work.
Is there any way to build a LISP function in .Net to return a selection set?
View 1 Replies View RelatedI'm using Inventor 2013 and would like to create a dialog box requesting the parameters for a simple rectangle and be able to snap in an assembly to get the distance for each parameter (width and depth) of the shape. Is this possible with either VBA or iLogic? I just need how to get the value...I can handle the dialog box.
View 5 Replies View Relatedi gotta deliver some drawings. Problem is that when i move/copy/etc any Mtext/Multileader/Dimension in Autocad 2011 LT the text "thickens".
I googled the problem at first and found out that for the Mtext, i needed to set Z positition/Elevation to 0, in order for the text to return to normal. What i gotta do to fix the dimensions and multileaders.
The lisp routine displays point values of a boundry (window) of an object using the vla_getBoundingBox.
The concept of the routine is to select any object and return two Point window value.
This routine works, but I noticed the Z point is changing depending on the object type drawn in 2d space elevation 0.0.
Test: Open a new drawing. Set the snap value to 1.0 just to make is easy to see values.
Draw three objects: A horizonal line, A Rectangle and Arc.
Load the gbb.lsp and run it, gbb
Select all three objects and notice the results.
It appears that objects the have an curve change the Z value (very little), but Z should be zero.
Try it with a polyline and then PEdit and FIT and re-check the Z value.
How to put a (Return) or Break to another text line in a label? Usually it is one big long label on one line.
View 4 Replies View RelatedI have a dynamic flat screen tv block. Its length flexes to match the lookup table chosen size...32" 42" (the length parameter being a defined mm length) etc i want to display the 32" 42" etc items from the lookup properties table, but i'm at a loss as to how to go about it.
currently i am using an attribute with a field pointing to lookup parameter/object/lookup description string but it's returning hashes.
block.png
I have not used AC for 3d drawings in years. But I do a lot of 2d in AC2012. Yesterday, I was killing time and took a look at some of the 3d capabilities while in an existing drawing. I inserted a few 3d objects, but I eventually deleted them. Now I notice that the UCS icon has become the 3d UCS, and my snaps no longer function as expected. Is there some way to purge the 3d info and return the drawing to it's original 2d functions?
View 4 Replies View RelatedI recently wrote a lisp routine that was supposed to get the 4 coordinates of a rectangle (LWPolyline). It worked fine in *MY* tests. But when someone else ran it, the routine operated as though the order of the points had been rearranged.
How can I get the points AND the order in which they belong?
Here's a sketch to show you what I mean. As part of my troubleshooting, I had a lisp routine draw a new pline using the points gathered by my first routine. The result of that on the left. On the right is the result of that when someone else runs the two routines.
Here's the code I used to get the points.
(defun getplinepointlist(ename)
(setq ent(entget ename))
(setq ptlist (list))
(while (setq pt(cdr(assoc 10 ent)))
[code].......
I have many drawings that were created with the xref's as full path and I need them to be relative path. I would just go in and reatch them as relative path but the drawings are complete and there are different layers frozen in each one.
View 4 Replies View Related