AutoCad :: Creating Block With A Button?
Dec 19, 2011
ive got a block which ads a revision, description of change, drawn by and date to an existing titleblock. The small block has attributes, is there a way to make it so that when its double clicked it oped the ddatte dialog box? my comoputer is set so that when double clicking a block with attributes this happens which is fine, but on some of the other computers in the office it comes up with a different properties dialog box. I was thinking of a button which when clicked envokes the ddatte command for that block, I know how to do it in excel for eg but am just wondering if its possible to do something simialar in cad?
View 5 Replies
ADVERTISEMENT
Aug 25, 2011
So I'm creating a block with a block table and constraints. The constraints such as Geometric Constraints work just as assumed. When adding in dimensional constraints we start to have more fun. So I have dimensional constraints that use other dimensional constraints to manipulate itself.
EX. dimconC = (dimconB-dimconA)
dimconA is 12
dimconB is 14
dimconC would be 2
Now when ever dimconA or dimconB change dimconC would populate accordingly.
With this I wanted to make an attribute that could be placed in instead of a dimensional constant.
EX dimconC = ((Att1*dimconB)-dimconA)
Att1 is 02
dimconA is 12
dimconB is 14
dimconC would be 16
However when trying to place in formula that references a attribute I keep getting an error "A DEPENDENT EXPRESSION CANNOT BE EVALUATED" So I assumed it was missing an expression from the attribute, however once entering an expression in for it I still get the same error.
(full error message attached)Constraint_Error.JPG
Is this something that is not allowed at all or have I over looked something?
View 2 Replies
View Related
Sep 26, 2013
Is there a way to add a toggle button to the applications status bar? I would like to be able to quickly toggle the frameselection on and off.
View 0 Replies
View Related
Jun 6, 2013
I am creating PDF files through the publish button on AutoCAD LT 2014 and I have had a client ask me of the PDF files are PDF/A compliant. I have search and found nothing on the subject.
View 3 Replies
View Related
Jun 10, 2013
I'm creating a block with a block attribute.
In the blockeditor I can change the draworder so the attribute is partly under some lines. But the draworder in the blockeditor of the attribute doesn't work in the normal modelspace; the blockattribute is allways on top.
View 9 Replies
View Related
Nov 7, 2011
I wrote some code in VB .NET 2010 getting started from Kean Walmsley project to create a new layer. I did it working directly from code and not using a command line as he did.
[URL] ...
The problem is that the same code works if I call it directly inside the application code, but doesn't if I throw it from a push button.
I get the eLockViolation error code.
View 3 Replies
View Related
Apr 25, 2012
I'm trying to make my website look a bit more professional. I want to make the images (in my sub categories) on my website into web buttons with rounded corners to fit a white background & with some depth & gradients etc instead of just flat squares like the buttons I have at the moment
Here a link to the buttons for my sub cats [URL]....
I thought here would be the best place to ask. I know how make buttons from text
but I need to make buttons from the images of the sub cats you see on my site.
I just need plain images that look like buttons to use on my EKM powershop..
View 17 Replies
View Related
Jul 7, 2013
I have an image that is going to serve as an online ad. I would like to have it look like a glass button like so many online ads do these days. However, most tutorials out there give instructions for how to do it with only text over the button. How would I do it if it's got three different sections to it? A photo on the top half and two colors on the left and right on the bottom?
View 2 Replies
View Related
Sep 27, 2012
how to create a Windows 7 Start orb.
View 5 Replies
View Related
Sep 18, 2013
sample code for creating nested blocks.
View 4 Replies
View Related
Jan 18, 2013
I have a A1 title block in model space that I like the look of. I'd like to duplicate this in A3 and A4.Is there a way that I can scale the A1 dimensions to A3 and A4 to avoid having to redraw them again with the appropriate dimensions?
View 9 Replies
View Related
Mar 18, 2011
I have created a block attribute, but I want to be able to set it up so when I insert the block into my drawing, it does not prompt me to input a number in the Edit Attributes box.
View 5 Replies
View Related
May 23, 2011
What is the proper way of creating a block?
I did 19 drawings, created blocks using the CREATE button, at first I could Insert them into any other drawing. But I saw this definition in a book,
Creates a block from separate entities (internal to current drawing), does this mean that a user on another computer cannot use my block unless he has the original drawing?
My boss told me that he uses WBLOCK instead, which writes to an external file.
I'm asking because out of the 19 drawings, 9-10 of them have the error "block referencing itself". I guess this is probably me naming the blocks the same as my file names.
So before I go any further, what is the proper way to create a block that can be used? I also shared my CAD folder on the network.
View 9 Replies
View Related
Apr 12, 2012
I am trying to cut out a logo from a 3D solid. Essentially the thing I'm trying to 'cut' is a box, simple. However, the logo I has is reasonably complicated and a conversion to DWG from an Illustrator file.
I have tried creating the whole thing as a surface, no luck
Tried exploding it into both lines, polylines and splines, no luck
The nearest I get is a long winded way round. Im having to joins the splines, then convert to polyline, then convert to surface, then thicken the surface. This would be ok, but there's lots of text and so on.
I just wondered if there's a simple way of doing it that I've missed? Such as "cut these 2D lines out of this 3D shape" command and then delete the sliced out pieces I don't want.
View 9 Replies
View Related
Dec 6, 2011
I am in the process of creating a few really useful dynamic blocks. My problem is I wish to collect them in a library folder so each block is a stand alone dwg file. I know I used to to this in 2011LT, but that was some time ago and I have since changed company and we have 2012LT. I cannot for the life of me remember how to do this.
I have tried to do it the usual w-block way, but when I import them into a new drawing they are actually a block within a block. Is there a better way of doing this?
View 3 Replies
View Related
May 15, 2013
I am using AutoCAD 2012 and have made lots of different files with individual drawings in them. I am planning to go into each drawing file and create a block for the drawing. After that I want to make all the blocks available in one drawing.
View 9 Replies
View Related
Apr 16, 2012
Is there anyway of re-naming an existing block without creating a new one? I made a rookie mistake of naming my blocks with names containing spaces i.e. 'block A' and 'block B' and have found that some routines like replace block won't work because of it.
View 3 Replies
View Related
Sep 8, 2011
I am trying to create fields for a title block and then link them to a sheet set. I want to use my title block as a x-ref and not a block. Everytime i try to create attributes for it and then use the command Battman then it says there are not attributes created. I am now at a stand still on how to creat fields for my sheets and then link them to my sheet set.
View 8 Replies
View Related
Dec 23, 2013
how to create a title block that can be edited by double clicking on a block of text and then scrolling thru the list of each block of text.
View 1 Replies
View Related
Oct 24, 2012
Is there a way to create block out of excel data?
I am trying to create multiple block missing in our database, actually i have all the measurement of the fitting inside excel this is mostly elbow and T fitting.
I was thinking of a dynamic block with editable lenght (strech parameter with a mix of constraint). but before digging too deep in a wrong direction i want to ask community if something similar already exist?
View 2 Replies
View Related
Mar 28, 2012
describe the process of creating attributes for drawing a block.
View 2 Replies
View Related
Apr 10, 2012
I'm trying to create blocks on the fly by drawing a polyline, using a jig, and then grabbing that polyline and creating a block from it.
I'm not interested in block names, so anonymous blocks seem to be the way to go. I've successfully managed to create the block and even add attributes to it. However, if I try and use battman or attsync AutoCAD tells me that "This drawing contains no attributed blocks." I can however double-click on the block and go to the enhanced attribute editor, which shows me the attributes with the tags I've given them. Exploding the block reveals that there is no nesting occuring.
My attributes seem to be stck in limbo...
The function that creates the stand is:
{ Transaction trans = ed.Document.TransactionManager.StartOpenCloseTransaction(); try { //create new instance of the polyline jig polylineJig.polylineJig plJig = new polylineJig.polylineJig(); promptStatusResult = plJig.newJig(); if
[Code]....
View 2 Replies
View Related
Feb 8, 2013
I am trying to create a block with 1 attribute (ELEVATION) showing a finished floor level and another text (field) to show another level derived by the sum of the attribute value + and additional (fixed) number, say 100.
I have tried using fields inside an ATTRIBUTE or a simple DTEXT but the field does not update, it only picks up the DEFAULT of the attribute, not the user entered input. How can I do this?
attached is the block
View 2 Replies
View Related
Dec 31, 2013
I am not sure this is even possible, but could I use some sort of invisible block attribute data and everytime I insert it into a drawing (I use the same block multiple times within a drawing) it would autopopulate fields in a table. For example I have a smoke detector symbol I insert, I also have a specific address associated with every single detection symbol I insert into a drawing, would I be able to attach data such as what type of detector it may be and have the address and type automatically populate in a table everytime I insert my block into a drawing?
View 1 Replies
View Related
Mar 28, 2012
I'm having a small problem with creating a flip state for a dynamic block that has 3 visibility states.
The visible/invisible parts of the block won't flip even though I have created 3 flip states (one for each visibility state) and selected all of the parts of the block I want to flip each time.
View 5 Replies
View Related
Jun 10, 2013
I'm having trouble getting my attribute definitions to work with my blocks.
I'm trying to create a tag that can flip around (dynamic) and have a tag number easily entered (attribute).
I notice that I could only get the attribute definition to work during a drawing insertion is when I wblocked out my block and inserted that drawing file. I was not able to insert the drawing file that had the block in it.
I can't seem to make a dynamic block drawing file, and then insert that dynamic block drawing file if I want the attribute to work..
View 4 Replies
View Related
Apr 26, 2013
I'm new to .net for autocad, but very familiar with c#. I studied some samples about creating a block from c#. I have a form for some basic input. When the user presses OK the code checks if the blockname is already in use. When no it creates the block using following
private void make_block() { double nextpoint = 0.0; double linedis = 7.3634; Document doc = Autodesk.AutoCAD.ApplicationServices.Application.DocumentManager.MdiActiveDocument; Database db = doc.Database; Editor ed = doc.Editor; using (Transaction tr = db.TransactionManager.StartTransaction()) {
[code]......
The code runs successfully (meaning i don't get any errors), but when I want to insert the block it isn't in the list of blocks.
View 2 Replies
View Related
Nov 12, 2012
What I want is to create a block which contains a bit of text displaying the scale (X scale only) of the block. Then, if I change the block's scale it will also update. Is this possible?
View 9 Replies
View Related
Apr 17, 2013
I am attaching my dynamic block that I am having difficulty finalizing. My goal is to be able to stretch or resize the hvac block, based on the size that is provided to me (ala 24x24, 36x36, 48x72, etc) (Stretch Action), I have that figured out, and I have the symbol in the center that stays centered as the block size changes, (Move Action).
Here is my problem, I want the symbol in the center to stay centered and scale based on a ratio as the overall size gets larger. So for example: if my size is a 24"x24" I want the symbol in the center to be approx 12" dia, but if the size gets up to say 60"x60" I want it to scale accordingly (so it could be like 48" dia), specifically maintaining the size based on the x axis, so if the it gets to a 60x72", I'd like it to still be centered but size according to the 60 width, and not stretch and look awkward. I want the center symbol to scale and stay centered in the rectangle as I scale the size.
View 7 Replies
View Related
May 21, 2013
I've got a problem with creating Path in Inventor VBA. I've created a source block definition in SourcePart.ipt, derived it in DestPart.ipt, placed this derived SketchBlockDefinition in Sketch3 and draw 3 extra lines. Now i want to add a SplitFeature with SplitTool as a Path of 3 lines, but first i need to create this Path. There is no problem with creating path from this 3 extra lines, but when i want to create path from lines that belongs to derived block - an error occurs.
Below is sample code (also included in attached file - DestPart.ipt). Try run it with DestPart.ipt as an active file. When Inventor is prompting for Selecting Sketch Entity first select one of 3 extra lines, macro ends with no errors. Then run it again, this time select one of 3 lines that belongs to SketchBlock - an error occurs.
When you try to add SplitFeature (Trim Solid) by UserInterface Button "Split" there is no problem with any set of 3 lines.
Sub CreatePathTest() Dim oPartDoc As Inventor.PartDocument Set oPartDoc = ThisApplication.ActiveDocument Dim oPickedSketchEntity As Inventor.SketchEntity Set oPickedSketchEntity = ThisApplication.CommandManager.Pick(kSketchCurveFilter, "Select Sketch Entity") Dim oNewPath As Inventor.Path Set oNewPath = oPartDoc.ComponentDefinition.Features.CreatePath(oPickedSketchEntity)End Sub
My System is Windows 7 32bit/64bit, Inventor 2012
View 1 Replies
View Related
Mar 14, 2013
i'm looking to select a block reference, take it's wcs position, translate the coordinates to the current ucs and then create an xline using those translated coordinates. simple, right?
i simplified some code to test that i could properly build an xline in a current ucs. i just threw in static point3d values instead of grabbing them from another object. it worked as expected:
<CommandMethod("test")> _ Public Sub test() 'get the active document, editor and database Dim acDoc As Document = Application.DocumentManager.MdiActiveDocument Dim acDocEd As Editor = acDoc.Editor Dim acCurDb As Database = acDoc.Database 'start a transaction Using acTrans As Transaction = acCurDb.TransactionManager.StartTransaction() 'open the table for read Dim acBlkTbl As BlockTable acBlkTbl = acTrans.GetObject(acCurDb.BlockTableId, OpenMode.ForRead) 'open the record for write Dim acBlkTblRec As BlockTableRecord acBlkTblRec =
[code]...
here, i revised the code so that a block reference's objectid is passed from another procedure, the origin is determined, translated to the current ucs and the points are tailored for the xline's basepoint and secondpoint. i threw in a few writemessages to ensure that the coordinates were indeed what i was looking for and they match up, but for some reason, the xline now fails to create itself.
'define the current ucs Dim ucsDesign As Matrix3d = acDocEd.CurrentUserCoordinateSystem 'start a transaction Using acTrans As Transaction = acCurDb.TransactionManager.StartTransaction() 'open the connector block for read Dim acBlock As BlockReference = acTrans.GetObject(idConnector, OpenMode.ForRead) 'save connector origin Dim ptOrigin As Point3d = acBlock.Position 'translate the point to the current ucs Dim ptUcsOrigin As Point3d = ptOrigin.TransformBy(ucsDesign.Inverse) 'show me the block position acDocEd.WriteMessage(vbLf & ptOrigin.ToString()) acDocEd.WriteMessage(vbLf & ptUcsOrigin.ToString()) 'open the table for read Dim acBlkTbl As BlockTable acBlkTbl = acTrans.GetObject(acCurDb.BlockTableId, OpenMode.ForRead) 'open
[code]...
i've rearranged this code multiple times, tried a couple different approaches, scoured the forums and even resorted to the less-than-elegant:
'create the xline Dim cmdString As String = "._xline " & ptUcsOrigin.X & "," & ptUcsOrigin.Y & "," & ptUcsOrigin.Z & " " & ptUcsOrigin.X & "," & ptUcsOrigin.Y + 1.0 & "," & ptUcsOrigin.Z & " " acDoc.SendStringToExecute(cmdString, True, False, False)
but i need to use the xline object after i've created it, so this sendstringtoexecute crap won't work.
View 7 Replies
View Related