AutoCAD VB :: How To Change View Using Combobox

Jun 9, 2013

I Want to change the View of viewport according to the Combobox change event.   the drawing is updating only after exiting the macro.  My aim is to view my 3D object in different views and to modify it. 

Here is my code.

Private Sub UserForm_Initialize()
ComboBox1.AddItem "Top"
ComboBox1.AddItem "Left"
ComboBox1.ListIndex = 0
End Sub

Private Sub ComboBox1_Change()
ThisDrawing.SendCommand "-View" & vbCr & ComboBox1.Text & vbCr
ThisDrawing.Regen acActiveViewport
End Sub

View 5 Replies


ADVERTISEMENT

AutoCAD Civil 3D :: List All Alignments In Combobox

Feb 20, 2013

I would like show all alignments in a combobox. I want do a application in C#.
 
Autocad Civil 3D 2014 +SP1
Quad Core Intel i7 3770-cpu 3.40Ghz.
ssd samsung 840 pro 512gb+ssd samsung 840 pro 256 gb+1tb hdd
32gb RAM 1600 Mhz.
nVidia Quadro 2000.
Win 7 Pro 64bit

View 8 Replies View Related

AutoCAD .NET :: List Layers In ComboBox Dropdown

Mar 4, 2013

Any examples on how to list all the layers of a current drawing and populate a ComboBox on a form with that list. It seems pretty simple, i'm just gonig through the .NET Developer guide now but was hoping there was a quicker solution.

View 4 Replies View Related

AutoCAD VB :: How To Make The Selected Value In Combobox Current Layer In Drawing

Dec 19, 2012

Private Sub UserForm_Initialize() Dim layerColl As AcadLayers Dim entry As AcadLayer Dim LayList As String Set layerColl = ThisDrawing.Layers For Each entry In layerColl ComboBox1.AddItem entry.Name Next End Sub

I have a form with a combobox. That combobox is filled up with all layers in a drawing. (see above)

Now I want to make the layer that I have selected (value) in the combobox the current layer in my drawing.

How can i make it current?

View 2 Replies View Related

AutoCAD VB :: All Layers Locked Except Active Layer Chosen In Combobox?

Dec 21, 2012

I have a form with a combobox and a commandbutton.

 All layers in the layermanager must be locked except the active layer chosen in the combobox. I try it with this code but it’s not the right solution.

Private Sub CommandButton1_Click()Dim layer As AcadLayer'check if all layers are lockedIf layer.Lock = False Thenlayer.Lock = True'make the layer selected in the combobox currentThisDrawing.ActiveLayer = ThisDrawing.Layers.Item(ComboBox1.Text)End SubPrivate Sub UserForm_Initialize() Dim layerColl As AcadLayers Dim layer As AcadLayer Dim LayList As String ' all layers locked For Each layer In ThisDrawing.Layers If layer.Lock = False Then layer.Lock = True End IfNext 'fill combobox Set layerColl = ThisDrawing.Layers For Each layer In layerColl ComboBox1.AddItem layer.Name Next End Sub

 2. When I choose the for next method to lock all layers (40 layers) it’s very slow.

View 4 Replies View Related

Edge Animate CC :: Adding A ColorPicker ComboBox

May 20, 2013

I watched a tutorial on Youtube about using Edge Animate to allow interactive color changes on an SVG image.  In the youtube video he had 3 or 4 color swatches that he would select from to change the colors to.  However I have a much bigger color chart I would like to offer and about 18 different groups on the SVG that can change in color.  I am hoping to be able to offer a drop-down box of color swatches with a combo box that says the name of the color swatch so that when they have the design the way they want they can copy the color swatch/SVG group name and include in their order. 
 
I have found some different code on the Internet but I don't know how to implement it in Edge Animate.  Can you show me an example of how to add a ColorPicker ComboBox where I can add my own color swatches to it?  I want the ColorPicker to be something that I can use again and again for every design.

View 5 Replies View Related

Lightroom :: Change View Options In Loupe View On Second Screen?

May 28, 2012

The loupe view on the second screen used to display information about the photo.  I double clicked on it and it disappeared and no matter what I do I can't seem to get it back.
 
On the primary screen this can be added/removed or changed in Library Module by selecting the menu view->view options... which gets you to a settings window where you can set what shows.  However, I cannot seem to find a similar thing for the second monitor.

View 1 Replies View Related

Photoshop :: Change From List View To Thumbnail View In CS

Feb 12, 2006

When I'm working in PS CS and open a folder of pictures it always reverts to List view even though I exited last time in Thumbnail view. How can I set it to open in Thumbnail view by default?

View 2 Replies View Related

Revit :: How To Keep View Same But Change Scale Of View / Perspective

Jun 18, 2012

I am working with a seris of 3d views that I want o make bigger. How can I do this.
 
I want to keep the view the same but changed the "scale" of the view/perspective 

View 2 Replies View Related

AutoCad :: Change Default View In 3D PDF?

Jul 1, 2013

When I open my 3D model I want it to start in a certain view and I can't figure out how to change this setting.

View 3 Replies View Related

AutoCAD LT :: Automatically Change UCS To VIEW?

Oct 20, 2010

Is there a setting that will automatically change the UCS to VIEW when I switch between viewports?

View 5 Replies View Related

AutoDesk Smoke :: Change CFX Schematic View To Action Schematic View

Jul 9, 2012

In Ken LaRue's demo (see attachment B), theres a lot more option for you to tinker with in CFX.mine (see attachment A) only stops at 'timing' option. what do i need to do to view the rest of it?

and because i cant view the rest of the option, i can't change CFX schematic view to Action schematic view.

View 2 Replies View Related

AutoCAD Inventor :: Change Design View In IDW?

Nov 9, 2005

Can you edit a drawing view of an assembly and change the Design View via the API?

View 9 Replies View Related

AutoCAD Map 3D :: Change View Scale In Layout Tab

Jan 25, 2013

i already know how to change the viewport scaling from 1:1, to 1:10, to 1:20, and so on but my real issue is someone before me change the view scale from 1:1 to 1:.808XXXXX. when i print my figures from the layout everything that is not in the viewport ( like my scale bar) come out shorter that it is on the the screen in paper space. Ive tried to change it back to 1:1 but it wont accept it and keeps the .808XXX value.

View 2 Replies View Related

AutoCAD Inventor :: Change View Default

Dec 9, 2011

How can i change my default setting from picture 1 to a new setting like picture 2 when i open up a new part file and assembly  file.Is there a setting i can change so whenever i open a new part file & assembly i have this setting as my default.

IV2012 

View 2 Replies View Related

AutoCAD Inventor :: Change Base View

Jan 24, 2013

I was wondering if there was a way to change the model my base views were linked to.

If I wanted to link the base view to a different model, would this be possible.

When I double click on the base view it shows the file path for the model that is currently chosen; however, it is all grey and I am unable to edit it or choose another file path.

How to change this? Is this even possible? Is it because I have annotated the drawing view that I am unable to change the model path?

View 2 Replies View Related

AutoCAD Inventor :: Change The View BOM Refers To?

Aug 13, 2013

I created an iassembly with several dozen configurations, and I need to see all the layers in the BOM.  I can't do that with an iassembly.  (This is where I learned this unfortunate truth.)

I reopen the 2d, the BOM reset itself to one layer, and any editing had dissappeared.  (I need to make all titles of subassemblies not visible, and reorder a few components.)

If I drop a configuration in its own assembly, I can show all layers.  If I use Design Assistant to copy the first drawing/assembly for another configuration, the views update just fine, but the BOM still references the original file's assembly. I can delete it and drop a new one, but I have to edit the BOM again.

If I drop the iassembly into an assembly by itself, I can't get the BOM to cooperate.  I can set the Structured Properties to all all levels, and expand subassemblies, but it doesn't save.  I can open BOM properties in the assembly, and they're all collapsed again.  In the drawing, the Level is set to All Levels, but only the iassembly is displayed.

Are there any ways to change what the BOM is referencing?  I'd rather not drop in a new one as the BOM would have to be ediited for each new print, and I have dozens to do...

 I've attached a screen shot in hopes it will inspire.  I will be needing around 200 prints of all the variations of this assembly.  It will vary in diameter, length, and a few components are iparts that change size.  

The more automated/streamlined the documentation, the better.

View 2 Replies View Related

AutoCAD Inventor :: Change View Base

Dec 7, 2011

what could have happened in an assembly when I've changed the cube front view (3D)? The projection has changed automatically (the view) in 2D. In other assemblies didn't happened the thing I've mentioned before even if I did the same thing meaning that I've modified the front view but 2D stayed in the same projection. 

View 1 Replies View Related

AutoCAD Inventor :: DWG To IDW Change With Base View?

Apr 15, 2013

We've got a new dwg template and we found that when we bring in a base view on a new drawing, the drawing changed to an idw format.

View 5 Replies View Related

AutoCAD Inventor :: Change First View Order

Mar 12, 2012

Is there any way to modify the order of the views that have been placed on the drawing sheet?  We have a lot of times where we place an assembly view to drive the title block and then place the child components for detailing.  Too many time the assembly view gets forgotten until you are done detailing the other parts, now instead of the assembly name showing on that sheet it is the first part you inserted.  I would like to be able to select a view and tell Inventor that I would like this view to be the first view instead so I don't have to copy and past everything from one sheet to another.  I used to have some code that looked at that first view but I can't find it anymore.

View 1 Replies View Related

AutoCAD 2013 :: Last Change To Layout View

Feb 19, 2013

Can I insert a field in the title block in the layouts that will show the date of the last change made to the part of the model that is shown in the layout view.

View 2 Replies View Related

AutoCAD Inventor :: How To Change Representation In New View

Nov 2, 2011

So after creating a bunch of assemblies with associated presentation and drawing files I was told that each assembly needs multiple representations for different part colors. I would like to be able to change the representation view of my assembly (i.e. from 'Master' to 'Black') in the presentation file I've already made and have the colors update here and in the associated drawing files.

PS - I do know how to change the representation in a new view. So...hindsight 20/20.

View 7 Replies View Related

AutoCAD Inventor :: Way To Change View Cube Labels?

Jun 18, 2012

Is there a way to change my view cube labels?

View 3 Replies View Related

AutoCAD Inventor :: Change Camera For Drawing View?

Aug 24, 2011

We are sometimes faced with the problem that we would like change the coordinate system of the model and have the drawing update it with the new orientation of the part without the need to place every annotation again. This is mostly for legacy parts and assemblies which are not modeled correct according to the coordinate system of the machine.

The following sample code does not work, is this by design or is there an error in the code?
 
Public Sub RotateFirstView() Dim oDrawDoc As DrawingDocument Set oDrawDoc = ThisApplication.ActiveDocument Dim oDrawView As DrawingView Set oDrawView = oDrawDoc.Sheets(1).DrawingViews(1) Dim oCamera As Camera Set oCamera = oDrawView.Camera Debug.Print oCamera.ViewOrientationType = kFrontViewOrientation oCamera.ViewOrientationType = kIsoBottomLeftViewOrientation oCamera.ApplyEnd Sub
 
Inventor Professional 2012 SP1 (25 seats with subscription)
Windows 7 64 bit
Lenovo D20, 12 GB RAM, Intel Xeon X5687 3.6 GHz, SSD
Quadro 4000, driver 8.17.12.9573, dual monitors
SpacePilot, driver version 6.15.3 Firmware 3.12

View 4 Replies View Related

AutoCAD Inventor :: How To Change Position Rep In Section View

Jan 31, 2013

I have a plan view where I want to show the door openings but I want the section view w/ the doors closed.  I can't seem to get inventor to do this. 

View 1 Replies View Related

AutoCAD Map 3D :: Unable To Change View Scale In New / Old Drawings

Aug 6, 2013

Someone was using my computer and maybe they clicked on some button but now if I am in a layout and double click on my viewport  I can not change the View Scale by typing in a custom scale.

I typically work in meters and do subdivision layout so I use 1:500 up to 1:5,000 but now even though the view ports are unlocked the number will not change when I type it in but I can zoom in and out with my mouse.

I can pick a scale in viewport scale like 1:5 1:1 but prefer to type in my scale as I like to plot it.

View 3 Replies View Related

AutoCAD Inventor :: Can't Change Scale Of Isometric View

Feb 18, 2013

I use: oView.scale=oView.scale/2 to half each view scale. It works for base view, projected views like bottom view and left view, but it doesn't work for Isometric view. Which property should I use for Isometric view?

View 6 Replies View Related

AutoCAD Inventor :: Change View Of Coordinate System?

Feb 17, 2013

I have some trouble with my coordinate system, it doesn't work like i want it to do...

This is how it's now:

Sketchplane = YX(+Z)
Sketchplane view = Front
Groundplane = ZX(+Y)
Groundplane view = Bottom
Home view = Front(up), Bottom, Right

But I want it to be like this:

Sketchplane = YX(+Z)
Sketchplane view = Top
Groundplane = YX(+Z)
Groundplane view = Bottom/Top
Home view = Top(up), Front, Right PERMANENT!!!

How to do?

View 3 Replies View Related

AutoCAD Inventor :: Change View To Top Of Screen For Windows 7?

Feb 13, 2012

What to change to change the view to the top of the screen for windows 7? Now the icons hard to see.Over Ribbon panela.

View 1 Replies View Related

AutoCAD Civil 3D :: How To Change Text Of One Profile View

Feb 4, 2013

So I am trying to edit certain text features dealing with stationing in one profile view (for example I don't want any stationing on the top of the profile view).  How do I do this so it will just affect the noted profile view and not delete the stationing on all of my profile views in this drawing. 

View 4 Replies View Related

AutoCad 2D :: Change Line Weight At View Port?

May 20, 2013

I created a xref. this xref included some poly line. width is 0.2mm. i need this poly line line weight should be change from different view port. right now this is shown in narrow line width. how can change this line weight at view port?

View 4 Replies View Related







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