I have successfully created and defined a topolgy in Map 3D using a Visual Lisp routine that I cobbled together from CREATE.LSP. What I'd really like to do is be able to access that data and create closed polylines and centroids without going through the menu interface. The only documentation that I've been able to find is the Mapping Commands section of the Help file.
I found several commands, but they rely on user input to work. I might be able to work around this by typing a dash before the command line to suppress dialog boxes except for the fact that MAPCLPLINE does not respond to this method.
I noticed in CREATE.LSP that there was a TPM_MTNBUILD command that (apparently) was used to build the topology. Are there similar commands that I just haven't found yet?
In C3D (2012 or 2013), the Pipe Properties Dialog reports "Hydraulic Properties" of a pipe section. Through .Net (C#), I can access part data such as Hydraulic gradient etc but I cannot seem to find any reference to three members I see on the mentioned dialog aka "Flow Rate", "Junction loss" and "Return period".
I have "fudged" a term "Flow Rate" into the pipe part parameter definition file (AeccPartParamCfg.xml) and can access that programmatically but I think this "Flow Rate" in the Pipe Properties Dialog" is part of the Auotcad database and I cannot seem to find a route to get hold of it.
In C3D (2012 or 2013), the Pipe Properties Dialog reports "Hydraulic Properties" of a pipe section. Through .Net (C#), I can access part data such as Hydraulic gradient etc but I cannot seem to find any reference to three members I see on the mentioned dialog aka "Flow Rate", "Junction loss" and "Return period".
I have "fudged" a term "Flow Rate" into the pipe part parameter definition file (AeccPartParamCfg.xml) and can access that programmatically but I think this "Flow Rate" in the Pipe Properties Dialog" is part of the Auotcad database and I cannot seem to find a route to get hold of it.
How to access the information stored with an AcDbScale object using Visual Lisp. I can convert the vla-object to an ename and then use association codes to extract the data, but surely there's an easier, more direct alternative.
I am trying to detect overlaps between two different features. They are, at the core, shape files from a GIS system and we have AutoCAD Civil 3D 2009.
I have reviewed the steps to test for Topo within a feature but don't know how to test topo between two features. I need to test for and identify "Overlaps" between feature A and Feature B and when Feature A is "Not Entirely Within" Feature B.
I have two set of points with O.D. attached (points_1:data_1 and points_2:data_2). I want each point of the first set get the O.D. of the NEAREST point of the second set. Something like "point overlay". The problem is that AutoCAD Map can't overlay point topologies, and that makes sense, since entities don' t actually overlap.
Lets say, I have an Extrude feature built on a Rectangle as Sketch Profile. Is it possible to programmatically edit that Sketch, add one line in the middle dividing the Rectangle and replay the Extrude, so that I get Rectangular solid and a Partition surface in between?
This was not possible as a user, but programmatically if its allowed to turn ON some Non-Manifold flag and allow this. If allowed, this probably may not be a single Extrude feature doing both Solid and Surface, but could split into 2 Extrudes.
Auto cad map 2011...unhanded exception error occurs when I create a large (2500+) polygon topology. In fact, initially I only use acad point for centroids to minimize complexity, until I know the map is clean.. Later, when a topology is assured, I bring in attributes as the centroids. I am only using four layers. Have been doing this for five years...always used acad map 2006 and had no issues. Have had the same problem with all releases after 2008, and was hoping this would be the moment..but it's still the same. Incidentally...I even moved to a 64 bit box,6 gigs of ram and 64 bit 2011version of acad map in the hope that this would go away.. How I regret giving up version 2006.
The attached assembly contains 3 parts modelled in slightly different ways. All parts fail when the dimension of 600 is changed to 200 in the Tool Part, probably because a different face comes into play...but it's the same body.
I have some problems with this drawing. I have some parcels and buildings, and a number for each of them. I attached data to parcel and building number, and I want to create topology and then to create thematic queries, based on any data attached to the numbers. And I don't know how to do that, and how can I use thematic query to show me the specific parcels based on the data I want if the table is attached to the parcel number and not on polylines. Same thing on buildings...
For example: I want to make some thematic maps based on tax value, street where the parcel is located, area, or on buildings: how many levels they have, and more.
I uploaded a example file to be more specific, with data attached to numbers, without topology created (drawing cleanup is done).
I have downloaded the SSURGO file from Web Soil Survey. They are in .shp files, I have imported the spatial files into AutoCad Map 3d 2012. My goal is to create a Topology so that I can detemine the soil type and acres of parcels of land.
When I click on the polygon in my drawing it is a closed polygon with double line or overlapping lines and it does has object data but it is part of the line not a point as I am used to.
I have sculpted several levels of detail on a face and have run into a issue.I have realized that I want to change the topology of the face.How do I go about doing this without losing all of the sculpted detail?
I have an object with about 10 morph targets and I've seen some issues with some shapes, which will need a few more edge loops around the mouth. Adding an edgeloop or any other topology edition to any of the targets or the original breaks the morpher animation.Is there a way to do this? Or to propagate the topology changes to all the morph targets?
I am always having a great problem while modeling knees and elbows. Some people say put three loops on knee and some people say put 5??.. If i put too many loops then it collapse while deforming and when i put less then it won't deform properly...
I just want to Know is there any effective topology technique for knees to deform naturally and which should look realistic while the character is on squatting positions.
Am I able to access and read and write to the file holding the variables used in the parameters-manager's palette. Ideally, I want to read the value held for an action-parameter, do some math using C, and write the result back to the file as a user-parameter which may be seen in the parameters-manager's palette.
I'm trying to write a plug-in that involves operations with TIN surfaces. I tried to follow the example from the Developer's guide just to see if I could get accessing a TIN surface to work, but without success, and now I'm stumped.
Here's my code, which is supposed prompt the user to pick a surface, and then simply spit out the name of the surface that was selected:
The plug-in is loading just fine and the initial prompt comes up, but whenever I actually select a surface after being prompted, I get a fatal error that causes AutoCAD to close.
I am trying to have access to the property Custom scale of the Viewport object and trigger a piece of code as soon as I pick the Viewport and change the zoom / Custom scale property.
I'm having a problem accessing data manager tables in the 2011 version. My C# .NET code worked fine with 2010. Here is a sample of the 2010 code that works, but returns zero length tables in 2011.
C#
ProjectPartCollection oPP = PlantApplication.CurrentProject.ProjectParts; PlantProject oPProj = PlantApplication.CurrentProject; Project oProj = oPP["PnId"]; try { //get ACAD data table [code].......
The last two lines fail to object any meaningful data in 2011. In 2010, I would have all the table rows and could access tags and asset information.
I'm setting up some custom toolbars and that's no problem, but what I'd like to do is have one of the buttons be a toggle, so the icon changes depending on what state it is in. I'm just having a bit of trouble figuring out how I find those buttons programatically from within C#. I've included Autodesk.Autocad.Customization which gives me the Toolbar, Tool bar button, etc classes, but I don't know how to find the existing toolbars from the running session of AutoCAD.
I'm trying to rewrite some old VBA code into VB.net (which I'm not even Novice level yet), and I'm stumped on what would be a fairly simple principle (in VBA)..
For Each BlockDef in ThisDrawing.blocks If Left(BlockDef.name, 12) = "*Paper_Space" then Select Case True Case BlockDef.Layout.Name Like "*Test*" blah blah End Select End IfNext Essentially conditional manipulation of paperspace elements depending on the layout name.
The following fragment allows me to recurse through entities in paperspace, but I've no idea which layout tab..
Dim BlkPaperSpc As BlockTableRecord = ScanTrans.GetObject(BlkTab _(BlockTableRecord.PaperSpace), OpenMode.ForWrite)For Each AcObjId As ObjectId In BlkPaperSpc Dim PspaceObj As String = AcObjId.ObjectClass.NameNext
What I need to do is to be able to identify a type of object (a table), confirm it's location, delete it and replace it with another one, depending on which layout tab it's on.
ACad, MEP, 3DS Max Windows 7x64 X5482 @3.2Ghz 8Gb Ram Quadro FX1700
I have already a Selection Set called objSS. All the objects in this Set are Multi Text, so I am wondering how is possible to have access to the property Text Height of these objects inside the Set in order to change the value of this property. I have created a variable as AcadMText but is not possible for me to loaded it with any item from objSS.
I have a problem with our new 2013 Theres a long time delay before the File menu wether you hover over it or click on the file button. Same if you use the Autodesk top left button
All the others act as expected i.e. edit, view, insert etc
This is really causing a loss of productivity through the time delay and extreme frustration waiting for it to click in
We have written a VB6 program for non-Inventor users that uses the Autodesk Inventor Object Library from an install of the Inventor Viewer 2011-2012. The program collects drawing sets from a VaultMirror folder exported from the actual Inventor vault. In addition, the program exports assembly parts to a formatted Excel file for purchasing.
We thought that it worked fine but, have recently found an issue: the program reads and exports ALL items referenced in an assembly, not just items in the parts list. For a particular assembly that I am using to test with, there are seven items in the parts list but, 23 parts referenced in total in the assembly. So, we get an Excel export with 23 + line items and when plotting to pdf, get 23 pdf files instead of the seven that should be created.
We are using the ApprenticeServerComponent to open the file objects but, I can't find a parts list. I have reviewed a number of posted examples of accesing parts lists and opening ApprenticeServerDrawingDocument objects but, nothing seems to work. It is like I don't have access to all of the object types needed to make it happen.
Should I be trying to open an iam or idw to access the parts list?
Are there any very basic code examples available of accessing a parts list?
How we can access the part parameters after hitting create iAssembly. do I need to make i parts first and then bring them to an assembly and make an iAssembly??
iLogic has the capabilities to access the physical properties of part files such as mass / area / volume etc. ilogic syntax to read the inertial properties of the part file such as Global Ixx / Iyy / Izz??
I can find it in the API help, but i don't really want to write it as separate code, just want to simply access it through iLogic interface.
I'm currently creating a program to replace all fasteners in an assembly with there Metric / Imperial opposites. My program works and I've created a log file for any issues that do come up.
My question now is:
Is there any way to manipulate bolted connections through the API? Or is this not supported yet?
I cannot seem to find anything to do with them. It's strange though as my program creates an error log for the Lock Washers in the Bolted Connection (which it was struggling with previously anyways), but shows the other fasteners as being successful.
I'm crating a macro wich would allow me to select multiple parts in an assembly and then calculate the length of each part. The parts are tubes wich are made of a sinlge sweep.
I started from the example truesweeplength, and built from there.
Now my problem is accessing the sweepfeature from the assembly.
In the part enviroment i use this:
Dim oDoc As PartDocument Dim oDef As PartComponentDefinition Dim osweepcount As Long Set oDoc = ThisApplication.ActiveDocument Set oDef = oDoc.ComponentDefinition osweepcount = oDef.Features.SweepFeatures.Count
The sweepcount is simply to check how many sweep features are in the part.
This works fine in part level.Now from assembly level I first create an obecjtcollection from all the parts I selected
Set oOccurrences = ThisApplication.TransientObjects.CreateObjectCollection
Then I try to acces the first occurence
oDoc.SelectSet.Item(1)
But then I'm stuck. I cant find the way to acess the features of the selected part.