Illustrator :: Inserting Automatic File Name Within Text Block?
Nov 26, 2013
InDesign has a great feature where the filename can be inserted as variable text which will automatically update whenever the filename is changed. Is there a plug-in for Illustrator which can do the same thing?
I am inserting a block into my drawing that has attributable text, and when I insert and pick the insertion point, the block prompts me immediately to fill in attributable text fields. My problem is that it runs through the sequence twice. How can I edit the block so it only does it once?
starting a new job at work so setting up the job folder etc. grabbed the title block and the text attribute insert from the library.....
so here is when the issue started.....so title block and text attribute are both saved in model space, both have all the same settings, this also applies to the template we have here all match.
so i xref in my title page at 1:1 which comes in normal, then i insert my attribute block in at 1:1 but it comes in at some super size thing, normal 3.5 text size is now 1000......
have fiddled with everything gone back to the library set etc but got no idea.
the interesting bit is if i open the title block and insert the attribute block in, it comes in perfect......
so in saying that i am assuming it is the work template..... but none of this has changed for over a month and have created drawings since then........maybe a random setting somewhere has changed but again haven't done anything different to normal no new radical changes....
i have attached a copy of the title block and the text attribute.
I have created a dynamic block of our companies Stage section. The block is set up as a rectangular array using XY parameters.
The block itself works fine however I created block attributes in the block dwg to display its measurements using the Distance x and Distance y totals.
When inserting the block into a new drawing I need to explode the block in order for the array to work, however this also means that the text is no longer locked to the block.
I want to insert a stored block into a drawing (model space). Below is the code I'm using and I get Runtime Error '5': Invalid procedure call or argument.
Sub Dummy() Dim COESTD_obj As AcadBlockReference, InsPtStd(0 To 2) As Long, COESTD As String COESTD = "C:JimHYDROCAD_DwgsBlocksZ_COE_STDS.dwg" InsPtStd(0) = 0#: InsPtStd(1) = 0#: InsPtStd(2) = 0# 'Set insertion point as 0,0,0 Set COESTD_obj = ThisDrawing.ModelSpace.InsertBlock(InsPtStd, COESTD, 1#, 1#, 1#, 0#) End Sub
I am inserting text onto a box layer. The box is rotated. When I rotate the text to fit into the box, the letters go slightly out of line and rotate seperately. I tried to save the text as a jpeg file and then rotate the object, but the same thing happened. The letters are no longer lined up.
Is it possible to automatically relink based on file type? I have hundreds of illustrator files that need three images in each changed out for a updated versions. It just so happens that the three all have different file extensions.
It seems that there should be a way to have illustrator replace the one .jpg file with another .jpg file (named differently) that's in the same location as the old file. Is there some type of more powerful scripting interface for illustrator besides the actions? vbscripting or something?
I realize that this isn't a normally supported feature of the links panel. I know that I can open each file and manually relink them as I open them. Hoping to save some time. I have to do this a couple times a year as we get in fresh images that we want to stuff into the same presentation format.
The file names contain timestamps that need to remain there so simply renaming the new files to match the old ones isn't an option either.
how I can go about automatic creation of figures and existing alignment (i.e. Centerline and edges) using csv/txt file data format. Currently I have to snap each line to create Centerline, edge, figures etc. a headache of work! I am using Autocad civil 3D 2012.
We're using C3D 2013 SP2. The survey company we use uses point styles to show the blocks. Say they shoot a catchbasin. Instead of inserting the block, the point shows up as the block.
I did a field check & needed to insert a missed CB. When I inserted the block, the other points that were CBs disappeared. I had to insert the block, copy it the clipboard, undo the insertion & then paste the block in. It did this on other drawings & other blocks.
Is it possible, via whatever methods (lisp?) to be able to have a premade block with an attribute and insert it into a drawing then assign a value to it by selecting another existing block in the drawing and using one of its own attribute’s values?
For example, say I have a block representing a telephone and it had an attribute called "PhoneNo" and I inserted it into a drawing showing an office floor plan that had blocks in each office space that are telephone junction boxes with attributes "PhoneExtension". I would like to be able to autocomplete the entering of the “PhoneNo” data by selecting one of the telephone junction boxes in the drawing and using its attribute’s value.
I have created d/blocks for my different pipe sizes i.e one block with a dropdown to select the different sizes and have done the same for my flanges. now how do I link / insert the flange d/block to the piping block so that I can export the information into a material list later on.
I can insert a block with block attributes using the Inter op very easily:
Dim theBlock AsAcadBlockReference Dim pickScreenVBA = myDoc.Utility.GetPoint(, "insert the hydrant") theBlock = myDoc.ModelSpace.InsertBlock(pickScreenVBA, "Hydrant", 1.0#, 1.0#, 1.0#, 0) Dim varAttributes AsObject varAttributes = theBlock.GetAttributes varAttributes(0).TextString ="3 Ports" varAttributes(1).TextString ="Salt water"
Works great, but when I try using the non-inter op, all the example insert new Attributes and not add block with existing attribute (so I end up with duplicate attributes for each block - i.e "Salt water" attribute is added to the block each time I run the code),
Are they any examples that does the same as above using the non-interop code?
I have several blocks saved as separate .DWGs, some of which are dynamic. I want to review and test these blocks, but I can't find a way to open the existing block definitions in the Block Editor without first inserting the blocks into a drawing.
I am counting all the doors in a project in autocad 2008, but It is becoming to be a real pain in the but because every time I change some door, I have to renumber almost every door .. I am sure there is an easier way to do that.. I am using a block with atributes and I would like to know if there is a way autocad can number automatically each block atribute.. I know that with mtext it is very easy (I use in my parking spaces) but with blocks I dont know how to do it . like each time I put a block the number gets updated, and each time I take one off it gets updated again..
Level label for displaying the plus heights in facade and section that is dynamic. I want to insert the block in 0,0,0 and then when i copy it i want it to change the level hight automatically.
We have specialized electrical schematic drawings on what is termed roll-drawings. These roll-drawings are simply 12" tall and variable width type drawings. We've had some as short as 24 inches and as long as 900 inches. As a result we use these section dimensions to distinguish circuit boundaries. It's not a real dimension, just a way to distinguish what circuit is located where. I've tried to recreate it using a block for improved automation as currently we just use a lisp routine that draws an arrow and lines. It looks like the screen capture of my block below. Is it possible to have the inside endpoints of the lines automatically stretch outwardly toward the arrows as the attribute Value changs?
Is there a way to have a block (called test, for arguments sake) within this block we have text (attribute / fiield or whatever).
Now I have an alignment that has stations set every 10 units and on those stations I have inserted the block "test" as part of the alignment label style.
I can get the block inserting correctly, rotation the direction I require etc but what I need is for this block to report the station number.. ie 10, for the first 20 for the second and so on.
I am trying to insert a block from another drawing, the only way I have been to acheive this has been to open the drawing
Set ObjDocument = ThisDrawing.Application.Documents.Open("D:ACADBlocksGENERAL.dwg") For Each ObjBlock In ObjDocument.Blocks If InStr(ObjBlock.Name, "LOGO") <> 0 Then CopyObjects End If Next
ObjDocument.Close
I would prefer not to open the drawing to access the block, is this possible in VBA.
I wish to insert a title sheet dwg, which has attribute definitions, as a block in another dwg. I can insert it, and if I explode it, the attribute definitions appear. Otherwise they are not added to the database.
I am using standard code, which I can attach. it starts
Dim btr As BlockTableRecord .. Dim blk As BlockReference = New BlockReference(ip, blkid) ' insert block .. btr.AppendEntity(blk) If btr.HasAttributeDefinitions Then ForEach attID As ObjectId In btr etc.
We have just done an overhaul of all our standard block symbols. These ultimately get saved into our title block template files.
Is there an easier way than Inserting each block individually?
Is there a variable that can automatically Redefine all blocks if I drag them in using ADC? The default setting is that any block that is already defined in that drawing will not get redefined.
Im having some troubles inserting a block into a line. See image. The block on the left inserts into the line and has attachment points (AutoCAD P&ID Provided) the block on the right i created. Im unable to get it to insert within the line without manually breaking the line after insertion, the result being the line through my block.
Every time I insert a block (dynamic or otherwise) into any drawing (I have tried several) my ucs (0,0) changes to the insertion point of that new block. I don't know what I have done, what button I have inadvertently pushed or setting that I have set, but I do not know how to undo this!
I am currently working with fx parameters and iLogic to drive a model and it's corresponding drawing to change based on a single user parameter.
I have managed to get the drawing to update both the scale of the views I need and the size of the sheet with the change in parameter using the following rule:
However when i attempt to use this with the title block using the function:
ActiveSheet.TitleBlock="My Title Block" in place of the sheet change size it brings up the error message:
Error in rule: Drawing Title Block, in document: Drawing
The parameter is incorrect. (Exception from HRESULT: 0x80070057 (E_INVALIDARG))
I have read elsewhere that this is due to me having prompted entries for the scale and drawn by fields, however when i use the function designed for prompted entries: ActiveSheet.SetTitleBlock("Other Title Block", "promptedEntry1", "promptedEntry2") It fills in the prompted entry fields from the code and if i change these entries in the "edit field" option they are overwritten when it is updated.
Is there a way have the prompted entries when you open the drawing fill in the "promptedEntry1" field in the rule so that I can use the rule? Or am I going about it the wrong way?
I should point out i'm new to iLogic and no-one in my workplace can use it so each person changing the "promptedEntry1" field to the scale they wish isn't a wise move.
I have a ton of blocks with attributes. Sometimes when I insert them, AutoCAD (2011) prompts me in the command line (perfect). Other times, a prompt box appears to insert attribute definitions (annoying).
What setting do I have wrong, or am I setting the blocks up incorrectly?
Whenever I try to insert a block with attributes, the text comes in backwards/upside down... I've tried attedit, battman, mirror, properties, attsync, regen and torient. None of them work.
I've inserted blocks into drawings in the past with no problems, using the same template and workspace..
I'm working in a different department and can't figure out why the attribute box won't open when I insert their title block. I have checked that all the variables attmode, attdia, attreq, filedia, and cmddia are all set to 1 in both drawings. What am I missing? I'm using 2014. I'm attaching the drawing I want to insert.
Is there a way i can insert a title block through the design center by selecting the the layout and dragging it in. When i bring it in it gives me just the blank paper without the title block.