AutoCAD VB :: Accessing And Iterating Selection Sets

Jul 18, 2012

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.

View 3 Replies


ADVERTISEMENT

AutoCAD .NET :: Cannot Store Multiple Selection Sets

Nov 15, 2012

From the AutoDESK docs [URL] ......

"AutoCAD.Application.ActiveDocument.SelectionSets. Add method
Not needed/provided" in VB.Net

Thus 'Autodesk.AutoCAD.ApplicationServices.Application. DocumentManager.MdiActiveDocument.SelectionSets' will not work.

So, I can't store multiple selection sets in VB.Net?

Why is it not provided? Or is there some other way to do that?

View 9 Replies View Related

AutoCAD Map 3D :: Error - Exceeded Maximum Number Of Selection Sets?

Nov 14, 2011

By doing this simple command I get this error message after a while of working...  2011Map 3d, Windows 7, 64 bit....

Select Line:

Select objects: 1 found

Select objects:

; error: exceeded maximum number of selection sets

Is there a setvar or toggle to change the max number of selection sets or to change to an unlimited setting anywhere?

At this time I have to save my work and close the dwg, reopen the dwg and I can resume picking objects etc., with no problems, untill it reaches the "majic" number and the error pops up.

View 3 Replies View Related

AutoCAD Visual LISP / AutoLISP :: Dimensions And Selection Sets

Nov 1, 2011

I have a lisp routine that creates a "frame wall" and I want to be able to automatically dimension said wall within the same routine. I have created two sets of points, each set being on its own new layer. I have made selection sets of each set of points, and want to cycle through each set dimensioning as required. This what I have so far for this part of the routine:

(command "DIMSCALE" 24)
(setq sel1 (ssget "x" '("VPOINTS")))
(setq TC (polar (ssname sel1 0) (dtr 180.0) 9))
(command "DIMLINEAR" (ssname sel1 0) (ssname sel1 1)) "V" (polar TC (dtr 180.0) 9) "")
[code]...

When I run the program I get the error: bad point argument. So what I think is happening is that the ssname command is not returning the actual value but just the name? I am new to AutoLisp and even newer to selection sets so be easy... Along with this, I am also curious as to how a selection set is ordered when it is chosen ie how does it determine what would be in (ssname sel1 0). Also, how would one go about deleting the points in these selection sets after the dimensioning has been completed.

View 5 Replies View Related

AutoCAD Visual LISP / AutoLISP :: Paperspace Selection Sets

Jan 10, 2002

I wish to collect a selection set of blocks in paperspace of a certain name. For model space I would use the following line:

(setq x1 (ssget "_x" '((2 . "*etc*") (410 . "model"))))

when it comes to setting paperspace as the 410 ssget list value as the name can be modified and I need it to work in all drawings. I tried
setting a variable to the paperspace layout name and using a print function at the (410 . "model") point but without sucess.

View 9 Replies View Related

AutoCAD Visual LISP / AutoLISP :: VLA Move With Selection Sets

Oct 3, 2011

I wrote a lisp program which creates a selection set using ssget. Then I use the bounding box commands to get the lowest point of that selection set. Now I want to move that selection set as a whole using the vla-move command. I am having trouble doing this. Is this possible? Can we vla-move a selection set? Is there a workaround?

View 2 Replies View Related

AutoCAD VB :: Manual Work Faster Than Automation - Selection Sets

Oct 13, 2011

I need to explode ~2000 PolyFace meshes in a drawing.Manually I can do the following:

> QSELECT - PolyFace Mesh - Select All

> Explode

I get a question if I want to "Disregard DrawingOrder for this operation due to the fact that it might take some time", by selecting "Yes" the process takes ~10 minutes (one explode).With an VBA automation I do the following:

> Create a selection set of all PolyFace meshes

> Explode each obj (2000 times) in the selection set with SendCommand (as .Explode does not work on polyface mesh objects)

I have waited hours for the same process (might be due to multiple explodes and/or screen updating taking place).I have always though automation is faster than manual work, but this proved me wrong.So to the questions:

1. How can I prevent screen updating in VBA (disregard draw order) during "long actions"

2. Is there a better way to explode a selection set than looping through each and every object calling explode (obj.handle)

For one drawing I can do it in 10 minutes, but I have 50 drawings with the need to explode this, having an automation run over night sounds great, but having it take 6x+ times longer for each drawing causes the night not to be long enough.

View 4 Replies View Related

AutoCAD Visual LISP / AutoLISP :: Changing Color Of Selection Sets?

Jul 27, 2013

I need to create a command which could change a color of an allready existing selection set when activated. For example i have a command which creates a cube, where each specific group of lines were added to different selection sets. how can i recall any created selection set by its name and change its color?

View 9 Replies View Related

AutoCAD .NET :: Dynamic Block Creation With Selection Sets Of Drawing Objects

Mar 19, 2012

It's possible to create a dynamic block programatically? I want to create a command that captures different selection sets of drawing objects and assign them to different Visibility States of a new block deffinition, on run time.

View 2 Replies View Related

3ds Max :: Edit Named Selection Sets Window Will Not Open?

Aug 1, 2012

My edit named selection sets window will not open. The button will not work nor the shortcut under EDIT, i have restarted, i have competely uninstalled max and i have updated with FBX plugins from autodesk. I use this command A LOT and it will not open.

View 2 Replies View Related

Mudbox :: Using Selection Sets With Paint Layer Masks?

Apr 18, 2011

I set up some selection sets thinking they would come in handy later on when I am painting. I thought I would be able to use them to paint my layer masks, but I cant figure out a way of using the selection to limit where I am painting inside the mask. I thought convert to a freeze but it seems paint layers ignore frozen areas. Is it possible, or is it a case of saving selections for sculpt and not for paitning?

View 7 Replies View Related

AutoDesk Smoke :: Use Selection Sets To Quickly Pull Up Kfs

Jul 17, 2012

I'm struggling with Selection Sets in 2012 Adv..I have a batch fx with 3 Action nodes in it. Each has a lot of stuff so I was hoping to use Selection Sets to quickly pull up the kfs I needed to tweek.

I set up about 4 sets but once I exit and go back in 3 of the sets (the ones in the action node I'm currently working in) have cleared. ie, they're still there but empty. The one set I've defined for the other Action node is ok.

I have tried setting them with 'Define' and with 'Add Selection to'.I think I must be missing one trick here, like not saving correctly?

View 9 Replies View Related

3ds Max :: Assign Keyboard Shortcuts For Different Selection Sets Functions / Commands?

Oct 10, 2012

I am trying to find a way to assign keyboard shortcuts for different selection sets functions/commands.

I failed to find selection set commands in customize user interface menu. seems that they named it in a manner so that people cant find them when they simply look for "selection" or "set" or "create selection set" or "make selection set" .

what I need is:

1. when I select a group of objects I want to make them a selection set with one keyboard shortcut. (to go to the sets menu window and press that "create a selection set" button is too time consuming. I am also aware that just writing a letter to the selection sets dialog creates a set but still I want that shortcut.)

2.select an object and immediately jump to the whole selection set with a keyboard shortcut. or toggle through selection sets.

3.delete the active selection set with one keyboard shortcut.

are these functions available as native commands in customize user interface?should I go looking for a maxscript ?

View 1 Replies View Related

AutoCAD .NET :: MDI - Iterating Many DWG Files

Jan 8, 2012

I'm working on translating a VBA routine that worked just fine, to VB.NET & I have had a lot of porblems with it. Yes, I am new to VB.NET. My routine renames XREF file names & opens  drawings that have these files XREF'd into them & resets their paths to the renamed file. My VBA routine used a few thisdrawing.sendcommand operations to do things like reload xrefs, unlock layers etc. Some of these worked in the VB.NET version while I only had getten as far as having the only DWG open that  was the one which I call the routing from. When it gets into opening another drawing I start getting all sorts of problems.

I worked these out by creating a NEWDOC as DOCUMENT object & setting autodesk....MDIcurrentdocument to the filename of the just opened DWG file &  then eliminating my sendcommand calls & replaceing them with record table operations.

Now I'm getting a file access error when trying to reload an XREF using document.reloadxrefs(objectidcollection).

I've tried not to nest transactions. I've tried to make sure all my transactions frpm  the current DWG not the original.

How to work with multiple DWG files. Maybe a simple example of reloading an XREF named "X" in a bunch of DWGs saved at some specific location could be given? Focusing on transactions, documents, & databases.

View 1 Replies View Related

AutoCAD .NET :: Iterating Through All Plot Devices?

Jun 16, 2011

I am trying to iterate through all the Plot Devices (plotDeviceName) available to the user.

View 3 Replies View Related

AutoCAD .NET :: Best Method For Iterating A Type From Modelspace?

Aug 16, 2012

performance differences between:

1) Using a selction filter to get the objectIDs of a particular type, then iterating them, or

2) Iterating all modelspace objects, checking ObjectID.ObjectClass.Name for the desired type.

View 1 Replies View Related

AutoCAD .NET :: Iterating Trough Items In Block

Feb 16, 2012

at multiple places i have drawn the same block in a drawing, and i would like select one block in the drawing, then iterate through the items in the block, and find the actual coordinates of a 3d-polyline (that is drawn in that block) in modelspace. How can I do this?

View 8 Replies View Related

AutoCAD Civil 3D :: Iterating Height Levels For A Polyline

Jan 20, 2013

I have a problem iterating heights when making a polyline between two different points that have Z-values. I've used Autocad Civil 3D for working with geodetic data with height measurements before and I remember using geodetically measured height values, transforming them into a surface and then when I create a 3Dpolyline within this area the polyline automatically gets z-values that change along the line.

In other words, I could use this 3Dpolyline to obtain a profile that gives me z-values even where there is no exact point with a value has been physically measured. It was a while ago I worked with Autocad and now when I started again I have a similar problem but can't manage to create a surface and get iterated values.

My exact problem this time is:

I have a sewage pipe that runs for several kilometers that is drawn as a 3Dpolyline, with correct x- and y-values. It doesn't have any z-values yet and these are what I want to obtain. I want the polyline to have continuous z-values that changes along the polyline (not only in vertexes) so that a smooth profile can be drawn if wanted. I have data of measured actual z-values for approximately every 500 meters or so along the sewage pipe and these are currently drawn as 3Dpolylines of around 20 meters going perpendicular to the pipe (as in the picture). In other words there are bars with z-values crossing the pipe all along the stretch. Now, what I want to do is to somehow make the polyline that represent the pipe to get the heights from these perpendicular bars with the measured z-values. If I try to draw a new 3Dpolyline between two of the measured bars where the actual pipe is supposed to be, the end vertexes of the 3Dpolyline gets the z-values of the bars. However, the value in between the bars gets the Z-value 0. So, if I start a 3Dpoly on bar 1 then continue the pipe with another vertex, and then finish off at the second bar I will have 2 vertexes with the correct z-value but the middle vertex will be incorrect (0). How do I get the pipe to get the correct z values automatically iterated from the values on the crossing bars? Is this even possible to do? Should I create a surface from the bars first, and in that case how do I do that? If possible I don't only want the vertexes between bars to have iterated z-values, I also want the entire line to have a correct value.

I've attached a crappy image made in paint (since I don't have Autocad on my home PC, only at the office). And just to make things even clearer I'll give an example. Let's say the pipe distance from 1 to 2 is 10 meters, the distance between 1 to 3 is 30 meters and the z-values of bar A and bar B is 10 and 25 respectively. So, when I draw a 3Dpolyline from 1 to 4, I want the vertex 2 to automatically get z-value 15 (since it's 1/3 on the way to B). In the same way, I would like for example the point on the pipe that is right in between 2 and 3 to have the z-value 20. I won't mind redoing the bars to for example singular points instead, if that makes it all easier.

View 9 Replies View Related

AutoCAD Inventor :: Huge Delay After Iterating Through Component Occurrences

Jul 27, 2012

My application, writing in C#, exports all vertex-data of parts in an assembly to external files.It uses the surfacebody.getExistingFacets method to do this and shows a progressbar to visualise progress.

The application works fine, only when it is finished, when I zoom in or zoom out in inventor, a huge delay exists before the actual zoom is done. And everytime I scroll the mouse wheel or touch my 3D mouse the delay is there.It's really up to several seconds everytime.

However when I close the assembly and re-open it again immediately after my app finished, these delays are not there anymore.Do I have recalculate something, or do I have to invoke a 'free-something' command ?

View 6 Replies View Related

Illustrator Scripting :: Iterating Over The Art Tree?

Apr 5, 2012

I am trying to write a 'duplicateLayer' function, and I've read all the related posts on these forums.  It seems most of the responses have only addressed art inside a layer, and not nested layers/groups.  I need to be able to duplicate ALL items in a layer.
 
I can get the sub-layers, but I can't figure out how to preserve order of the items in the new layer.  For example, if my layer looks like this:
 
layer 1
art 1
art 2
sub layer 1
sub art 1
art 3
 
I can call layer.pageItems to get my three art objects and duplicate them, and I can call layer.layers to get my one sub layer and duplicate it.  But how do I preserve the same order of the art objects and sub layers with respect to each other?

View 3 Replies View Related

Lightroom :: Ordering Of Collection Sets And Collections (inside Collection Sets)?

Jun 25, 2013

What are the rules for how elements (specifically, collections and other collection sets) are ordered within a collection set?
 
I was trying to get a collection to appear at the top of the list of items in a collection set, but it seems to get stuffed below all the other collection sets regardless of the name given to the collection.

View 2 Replies View Related

AutoCAD .NET :: Accessing Variables

Dec 1, 2013

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.

View 2 Replies View Related

AutoCAD Civil 3D :: Accessing TIN Surface?

Sep 19, 2013

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:

Imports System
Imports Autodesk.AutoCAD.Runtime
Imports Autodesk.AutoCAD.ApplicationServices
Imports Autodesk.AutoCAD.DatabaseServices
Imports Autodesk.AutoCAD.Geometry
Imports Autodesk.AutoCAD.EditorInput

[code]....

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.

View 3 Replies View Related

AutoCAD VB :: Accessing Viewport Properties

Jul 24, 2012

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.

View 2 Replies View Related

AutoCAD .NET :: Accessing Database Tables

Sep 21, 2011

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. 

View 2 Replies View Related

AutoCAD Map 3D :: Accessing Topology Data

Jul 20, 2011

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?

View 2 Replies View Related

AutoCAD .NET :: Accessing Tool Bars / Buttons

Oct 6, 2011

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.

View 9 Replies View Related

AutoCAD .NET :: Accessing Entities On Paperspace Layouts

Dec 13, 2012

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

View 2 Replies View Related

AutoCAD 2013 :: Big Lag Accessing The File Menu

Mar 3, 2013

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

View 3 Replies View Related

AutoCad :: Accessing .ctb Plot Settings In 2013?

May 17, 2012

Where do i set my ctb settings in 2013?

View 3 Replies View Related

AutoCAD Inventor :: Accessing A Parts List?

Nov 15, 2011

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?

View 1 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved