Planning to overrule some of sub entities in a block. Let's make it simple . All lines and attributes in block should be circles and original block should not be seen. I came up with below code.
The code reacts differently if I remove
MyBase.WorldDraw(drawable, Wd)
and my goal is not to show the real block. Just showing whatever is overruled.
Public Class toverrule Inherits Autodesk.AutoCAD.GraphicsInterface.DrawableOverrule Public Overrides Function WorldDraw(ByVal drawable As Autodesk.AutoCAD.GraphicsInterface.Drawable, ByVal Wd As Autodesk.AutoCAD.GraphicsInterface.WorldDraw) As Boolean Dim myBlock As BlockReference = CType(drawable, BlockReference) If Not myBlock.Database Is Nothing Then [code].......
I'm borrowing from the samples library in the Inventor:
Public Sub GetSingleSelection()
' Get a feature selection from the user Dim oObject As Object Set oObject = ThisApplication.CommandManager.Pick(kPartFeatureFilter, "Pick a feature") MsgBox "Picked: " & oObject.Name
End Sub
Works fine, and is fairly simple, but the problem I'm having is if I press the escape key after starting the command, but before making my selection, I'm not able to start the command again.
I realize from my searching that using the Selection (Simple) sample allows for an interrupt, with some modification, was just wondering if there was something similar for this simpler selection option.
Using AutoCAD 2013 and TOL command to generate feature control frames. We set our lineweights based on layer assignments.
Problem is that when printing, AutoCAD seems to randomly assign a lineweight to the feature control frames. It can vary from what it's supposed to be (such as lineweight set for the dimension layer) or thicker than even what the object lines are set at. Seems to pick a random linewieght at time of printing for these elements (just the boxes, not the symbols/text itself).
Is there a setting we should be defining somewhere to force it to follow the lineweight of the layer that it has been assigned to? Known bug?
I need to return the entity name of the largest (longest closed) polyline in a selection set. At this point I have no trouble creating the selection set and even getting the area of the boundingbox, which is not the most accurate way to find the true size, but it's a start. The part that has me stumped is: if I iterate through the selection set, then how can I compare one to the other when I have access to the current entity. I've been staring at examples of lambdas but it seems to me that iterating through the selection set is going about it wrong in the first place.
Below is my current code with a remaining issue. I can return the largest area of the polylines (no good for more than two entities in selection set), but I do not know how to return the entity name:
(IF (> (SETQ SS (SSGET "x" '((0 . "*POLYLINE") (8 . "POOL") (-4 . "<OR") (62 . 5) (62 . 256) (-4 . "OR>")))) 1 ) (PROGN (SETQ a (1- a) ent (CDR (CAR (SSNAME ss a))) en2 (CDR (CAR (SSNAME ss (1- a)))) ar1 (APPLY '* (LIST (LAMBDA (ent) (VLAX-INVOKE-METHOD (VLAX-ENAME->VLA-OBJECT ent) 'getboundingbox 'minpt 'maxpt) (SETQ pt1 [code]......
I am using Revit Arch 2011 and it is more natural for me to use shift to add to a selection and control to subtract from a selection. Can this be changed and how?
In 2013 SP1.1 we are noticing that when using offset in a sketch, the offset line/curve is invisible and cant be seen until a zoom is done, then it appears.
I have a set of notes for a given jurisdiction that I need to show on mumltiple layout tabs within the same file. However, the notes need to change their width, number of columns, height, etc. for each layout tab to work with viewports and other drawing elements within each tab. My question is this- is there way using fields, blocks, rtext, something that will allow me to create one master copy of the note and basically have instances of the note on those other tabs that I can adjust the wrapping, height, columns etc.? I could just create a bunck of copies of the same note, but then if we get a comment from an AHJ about the notes, we need to make sure the comment is addressed in each instance of the note instead of just one master note. Is there way to do what Im asking, or is the technology just not there yet?
My units are set to decimal. In acad 2004, the dropdown list showed options like 1"=50' In 2013, it shows options like 1/32"=1'-0" How can I get it to display such as 1"=50' like before?
We have many text entities in our drawing quoting a number "S3". We need to suffix that number with the text "PT" Most, if not all, of the "S3"'s are MText.
However, the "PT" text needs to be at about 70% of the size of the "S3" and be positioned almost like a superscript. It also needs to be a different colour for pen table reasons.
When objects are selected, they don't show up on the properties panel (or on the Quick Select panel either) It doesn't matter what method I use:
-Pick one object (lines, arcs, circles, blocks, etc), the Quick Properties flyout appears, but empty. Properties flyout show "no selection"
-Window-select object or objects. Quick Properties bar shows up empty again. Properties flyout show "no selection"
-Click on the Quick Select icon. It prompts me to pick geometry. I do. The Quick Select window comes up, but where it says "Object Type", it only has the option "Multiple", and not the normal list of the geometry you selected.
Have Autocad 2011, as well as Autocad 2010 and Inventor 2010 (trial license) on the same machine.
Intel Core2 Quad Q8200 2.34 GHz 8 GB RAM Windows 7 Pro 64 bit
I need to turn several of my photographs into vector images for textile printing. Is it possible to somehow adjust or control the Image Tracer selection to other colors like 10-11 (or other), instead of either 6 or 16 ?
if it's possible to control a html5 video in Edge ?For example, I added a html5 video with the video tag and I want the video to play and stop after 20 seconds. Then, plays some animation on my edge timeline. I suppose the video must be controlled with Javascript ?
I wish to control an array within a block (see jpg). Basically, I have a series of circles which I want to fix to Distance1. I want to control the distance between the circles with an expression called 'centers' (say 80mm). When I change the length of Distance1 in the Properties-tablet to say 600-mm, I want the array to follow the dimension.
When I select the array, the fx button next to the column distance on the array-tablet is greyed out. If I were using Revit, I would apply a dimension and give it a label which I would manipulate in the identity-table. What should I do in AutoCAD to achieve the same result?
xref fade control not working?In model space I have xref'd a dwg (probably 2010 format) and it positions correct and displays in the normal default faded mode. No matter where I have the slider in display options, the xref fade does not change. Even changing the system variable through the command line is ineffective.
I'm running AutoCAD 2013 with Service Pack 1.1. installed.
(Using AutoCAD 2013) I am trying to insert a .dwg as a block (which has attributes) using the "-insert" command, but the attributes order wrong. The .dwg I'm inserting is the "Exploded" version of the block (loose attributes) so that I don't have to explode it after inserting.
Is there a way to control the order of the attributes when they are inserted?
Why does the layer control toolbar always state the Xref layers by default. Is there a workaround, or a setting so the layers of the current drawing are displayed by default?
When I use my layer control and the pop up opens to changes layer or add layer, it will not give me the "x" to close the screen. I am figuring out to close the screen.
For some reason the tools in my photoshop are not showing up correctly on the cursor when they are selected. For example, normally when you click the brush tool, the cursor changes into a circle which shows you the size of your brush, but for some reason, all i am getting is a little " + "
Have i changed a setting somewhere? Does anybody know how i can get the cursor to go back to the way it should be. I just want it to be a circle when the brush is selected so i can see the size of my brush.
I'm using autocad 2013 & the classic workspace instead of ribbon. For some strange reason, if 2 or more drawings are open & I minimize a drawing, it removes the minimize, maximize, close buttons from the right top side of the screen like in the attached picture. To get them back I have to go to the window pulldown & select the drawing from there. I'm using windows 7 pro with a nvidia quadro 1000m card.