AutoCAD VB :: Public Shared Variables

May 3, 2012

I have several variables I want to be able to set and then use throughout my project.

First, and seems simplest, would be to just Public Shared the variables. Set them as required, call them when needed.

Second would be to create an object and assign the variables as properties to that object. It would take more programming to do this option. The beauty of this would be that I could store the values from drawing session to drawing session and would not have to ask the user for the values every time he starts my program. Can this be a custom dictionary object? Is that how you would design it?

Unless there is a way to make my Public Shared variables hold their values when the drawing is closed. Static doesn't seem to work here, but I could be missing something.

View 3 Replies


ADVERTISEMENT

Revit :: Change Window From Shared To Non-shared In Family Editor

Nov 3, 2011

I am making a nested family of windows and inserted the windows as shared and I need them as non shared. Is there a way to change the window from shared to non shared in the family editor?

View 2 Replies View Related

AutoCAD .NET :: Does Not Contain Public Definition For GetEnumerator

Aug 1, 2012

While I tried to start a loop on a selection set object as below,

foreach (AcadObject SelDrawingObject1 in GenSelSSetObj)

I get an error as below,

foreach statement cannot operate on variables of type 'Autodesk.AutoCAD.Interop.Common.AcadObject' because 'Autodesk.AutoCAD.Interop.Common.AcadObject' does not contain a public definition for 'GetEnumerator' 

changes required to fix this.

View 3 Replies View Related

AutoCAD Civil 3D :: Public Conceptual Design To Google Earth

Feb 15, 2013

I wanted to public this design to Google Earth, but some how the model is flat wiith existing ground. I did choose "Drape entities on ground" and also tried "elevation relative to ground" it is sitll a flat model.

View 1 Replies View Related

AutoCAD Civil 3D :: Public List That Has Certified Trainers In Different Market Areas?

Jun 22, 2012

Our company is looking for training in Autodesk Civil 3d.  We contacted a local re-seller, but unfortunately their quote was higher than our company can absorb at this time with the economy.  Is there a public list that has certified trainers in different market areas?  We are located about 40 minutes North of the Philadelphia area.

View 9 Replies View Related

AutoCAD Inventor :: ILogic Error Public Member On Type Not Found

Sep 25, 2013

I have this error in my iLogic code for inserting sketch symbols. "Public Member 'ActiveSheet' on type 'Drawing View' not found"

I have declared everything in the code. I dont understand what it cant find.

View 7 Replies View Related

Paint Shop Pro :: Using Public Pictures Folder On Windows 7

Jan 2, 2012

I store all my photos in the directories under the public pictures folder, (C:Users Public Pictures) rather than in my pictures folder in my documents. I do this so that all the users on the system can get to the pictures.

I'm having problems getting Paint Shop Pro to recognize the folder correctly. I have added the c:users public pictures folder to the organizer using the Browse More Folders action and it shows up. However, the Smart Collections don't see any of the files in the folders under this dir.

My overall goal here is to be able to use the timeline feature on all my photos at once, so I want to get all of the photos into the All Pictures smart collection.

View 1 Replies View Related

Photoshop :: Automate Process Of Scanning Bunch Of Old Public Domain Magazines

Aug 24, 2013

I'm trying to automate the process of scanning a bunch old public domain magazines.  When I try to create an Action to automate the process of the following mouse clicks:
 
File > Import > WIA Support
Click START button on WIA Support screen
Choose which device I want to use [flatbed scanner] > Click OK
Choose Custom Settings > Click PREVIEW
 
the Action stops at the very first step above (File > Import > WIA Support).
 
Maybe Actions aren't the best way to go about automating this entire process.  If there is a better way this can be done how do I go about it?  I want the macro / Action to stop at the last step above because I often need to adjust the portion of the page that I actually want scanned so I need to do the final step manually (actually scanning the page once I'm satisfied with the preview).

View 1 Replies View Related

AutoCad :: Shared Tool Palettes

Mar 5, 2013

The best way to share my tool palettes. I have created blocks & saved them on our shared drive, I have set my tool palettes up how I want them, Alphabetical order and set the size for the images to display.

I now want to give this palette to all my colleagues to use as standard for when they open their CAD.

View 9 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 LT :: Block Attributes With Variables?

Aug 7, 2013

Using ACAD2014LT.  I want to use the first variable attribute value as a variable in subsequent attributes in the same block.  This will be extracted and used for tag references in a PLC program.

Along the line, i know I can change the enclosed character ( ' ), but can I remove it?

View 3 Replies View Related

AutoCAD Inventor :: Using Global Variables

Aug 30, 2011

I've been working on converting a VBA macro to an Add-In (my first). I thought all was going well, but I'm struggling to share the InventorApplication object within my add-in...

All the googling I've done suggests the most suitable way is to declare it as a global variable. So I followed the work flow on this page:
([URL]......) and created a module to declare my global variables. I've then referenced this module back in the original class, but when I do, I get a message saying "modDeclarations is a type and cannot be used as an expression"..

So here's what I've got:

View 3 Replies View Related

AutoCAD .NET :: Save Some Variables Into DWG File - How

Sep 12, 2012

if I'm able to save some variables into current DWG?I would like to provide availability for user to save some data which is different for each DWG file.

View 9 Replies View Related

AutoCAD .NET :: Extract All System Variables

Oct 14, 2011

I was wondering if there is any way to dump out all system variables with current value in a text file. One way would be to have the variable names already preset in a list of strings then extract them. But is there any other faster way? I need to compare some drawings side by side.

View 6 Replies View Related

AutoCAD .NET :: Reading Some Variables Into DWG File?

May 3, 2013

reading some variables into DWG file - how? C#.

View 3 Replies View Related

AutoCad :: Baseview System Variables

Jun 17, 2013

when using baseview / viewbase how can I make the resulting views linetypes, weights and colors what I want by default. Currently I change them after creating the views.

View 3 Replies View Related

AutoCAD Civil 3D :: Overall Slowness By 1 User On Shared Computer

Aug 20, 2012

We have a shared computer that a few co-workers all use C3D on. We each copied some clients standards to various C drive locations including some C:<user> folders. One user suddenly expierenced very slow opening of C3D (noted it kinda would stick at one of the Aecc...loading file) and once it opened, could not open a C3D file (alignment, profile, corridor type dwg). A small file with only text and no C3D files would open.

Other users could open these C3D files on the computer using their login, no slowness.

I realize this is vague and near impossible to pinpoint. I wonder if a Uninstall/Reinstall is a likely solution. This may require copying standard files again (a real pain).

View 1 Replies View Related

AutoCAD Inventor :: Visible Versus Shared Sketch

May 22, 2012

What is the difference between:

1) create a sketch

2) create an extrusion

3) make the sketch VISIBLE

4) create another extrusion

and:

1) create a sketch

2) create an extrusion

3) make the sketch SHARED

4) create another extrusion

View 9 Replies View Related

AutoCAD .NET :: Saving UCS Using Current System Variables

Dec 12, 2012

Using the VB.NET example code on exchange.autodesk.com for Defining a User Coordinate System, I pretty much copy and pasted the code to suit my needs. While the example shows how to create a UCS origin, X Axis and Y Axis from scratch, I am attempting to simply cast the values from the system variables UCSORG, UCSXDIR and UCSYDIR. These system variables are read only, and when looking into the types, I believe they are all 3D Point type values. 

I'm experiencing errors when trying to run the following code, and it's making me wonder whether what I'm attempting to do is possible. The JIT Debugger is pointing out a System.InvalidCastException. Is there a problem with setting a Point3D value (from the system variable) to a Vector3D type (which is required for defining a new ucs)?  

Public Sub saveCurrentUcs()
'get the current document and database
Dim acDoc As Document = Application.DocumentManager.MdiActiveDocument
Dim acCurDb As Database = acDoc.Database

[Code]....

View 1 Replies View Related

AutoCAD .NET :: Change The Value Of User Variables In 2010?

Jan 30, 2013

Parametric Drawing about  .net API。

I define a user Variables in autocad2010(such as variableaa=10),I want to use the variable to drive the dimension of a line。

Now I want to change the value of  variableaa  through  .net API,can you tell me how to change the value of  variableaa  through .net API? can you tell me the code?

View 2 Replies View Related

AutoCAD .NET :: Change The Value Of User Variables Of 201​0 Through API?

Feb 20, 2013

this is a screenshot of the dwg-file。

I want to change the value of user1  through  .net API(user1 is a User Variables),my purpose is to change the length of the line.could you tell me the code?

View 2 Replies View Related

AutoCad :: List Favorite System Variables

May 17, 2013

Why the system variable is valuable to you if you can. CTAB - Useful in FIELD with Layouts for titleblock sheet numbering.OFFSETGAPTYPE - Multiple offset settings.

View 9 Replies View Related

AutoCAD LT :: Get List Of Variables And Commands From Help File?

Aug 1, 2012

how to get a list of Variables and Commands from the Help file?

View 9 Replies View Related

AutoCad :: Pull Up System Variables Dialog Box

Oct 2, 2012

How do I pull up the system variables dialog box? (also is it considered a dialog box?)

I've always changed individual variables at the command line and in all honesty I didn't even know there was a Dialog box for them until I saw a picture of one on a post here.

View 4 Replies View Related

AutoCad :: Get List Of Commands And Variables In 2013?

Dec 28, 2012

How to get a list of commands and variables in AutoCad 2013. In the past I always got that from the help files, but it seems now that I cannot find in the help files in this new version of AutoCad 2013.

View 4 Replies View Related

AutoCAD 2013 :: How To Manage System Variables

Oct 2, 2013

We have six CAD machines in our office (not including several versions of LT), and only one machine "AutoCAD 2013" is having this issue: 

ATTREQ & ATTMODE keep changing to undesirable values.

We generally use "ATTREQ 0" and "ATTMODE 1" and NEVER change these except "ATTREQ" gets changed in some LISP routines depending on the insert, but "ATTMODE" had to be looked up because we never change it from 1.

I know that there is no reference to ATTMODE anywhere in our customizations.

Does AutoCAD try to manage these system variables? Is there anything else that I can check to stop this?

View 6 Replies View Related

AutoCAD 2013 :: Shared Use Of Tool Palettes Does Not Work Correct

Jan 30, 2013

I want to share toolpalettes for multi-users in a network.

i create a share-folder with full-write-and-read-status for the cad-admin. then i added the folder into the _toolpalettepath-definition in the acad-options. all other users only have only-read-status for this folder.

this folder will be define in the first position of this list.

in theorie this will work - but now a costumer test this configuration. the problem is, that texts and seperator-lines in the paletten-defintion change the order - like example.

In other postings i read the name *.aws-files - but i did not understand the meaning of this file.

View 3 Replies View Related

AutoCAD 2013 :: Save A File To A Shared Dropbox Folder

Feb 22, 2013

I noticed that my computer was slowing up, BIG time. This thing's got dual quad core Xeon, 12gb DDR3, ATI FireGL V8600, etc. I could hear it processing something constantly and as I was in CAD I couldn't really do anything. When I opened the task manager and looked at the processes, "accoreconsole. exe" (an AutoCAD component) was using 10.5gb of memory. On my performance tab, my memory was maxed at 11.5gb for at least a half hour.

Today, I dealt with it all day long by ending the process whenever I'd notice it on the list of processes, or if the computer suddenly began to lag. I've also been having trouble with Dropbox. Not sure if this would at all be related but, if I try to save a file to a shared dropbox folder, it gets to 81% and freezes with the (Not Responding) message up top. I can save just fine to my network folder though.

View 9 Replies View Related

AutoCAD .NET :: Selecting Cells In Excel And Storing Them As Variables

Dec 3, 2013

While in my AutoCad drawing, I need to be able to select cells in an Excel database and use them as variables to create a drawing.  I've looked on the Internet and have found some bits and pieces of code for particular uses, but what I'm looking for is the methodology, or some training/examples on working with Excel and AutoCad using VB.net.

View 3 Replies View Related

AutoCAD LT :: QuickCalc Variables / Store For Use At Command Line

Oct 18, 2013

I have a few dozen variables that I am trying to store for use at the command line. I can only append to input area with the actual quickcalc open, how i can reinitialize the global variable list? 

View 9 Replies View Related

AutoCAD .NET :: Define And Assign Variables In Single Line

Aug 3, 2012

Why do most of the VB.Net examples, define and assign a variable in a single line as it is being used in the program.

In VBA I found it easier to read the code with the variables defined at the top of the function or subroutine.

What do most of you do when defining variables ?

I find the VB.net lines below more difficult to read ..............

For Each acSSObj As SelectedObject In acSSet

Dim acEnt As Entity = acTrans.GetObject(acSSObj.ObjectId,OpenMode.ForWrite)

View 3 Replies View Related







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