AutoCad :: Code A Custom Linetype

Sep 12, 2013

Is it possible to code a custom linetype, so that it only follow certain annotation scales (e.g. 1:100, 1:200 1:500) and so that it just appears as a continuous line below and above these certain scales?

The solution should work even when the drawing is used by others and apply to both modelpsace and paperspace (viewport).

View 0 Replies


AutoCad 2D :: Custom Linetype - SHX Missing

Jul 13, 2012

I have created a custom linetype for the flexible duct when my colleague open the drawings the .shx are missing. So i need to send them the .shx.

View 3 Replies View Related

AutoCad :: Custom Linetype Not Displaying In Other PCs

Aug 9, 2012

I have created a custom linetype using shape for Plugmold like this _____ / / _____ Its works in my PC. But when others open it from their PC it shows like this ____ . . . . . ___.

View 9 Replies View Related

AutoCAD 2013 :: Start With O On Custom Linetype

Jan 14, 2013

Is there a way to start a custom line type so that is starts and ends with "O". Right now, the default "FENCELINE1" has circles in it, but it starts and ends with a line.

Here's their code for the line:

*FENCELINE1,Fenceline circle ----0-----0----0-----0----0-----0--

I already tried just putting the O's at the ends, and that didn't do it.

Below is a picture of what I'm looking to get. The top one is the FENCELINE1, the bottom one is just circles and lines, but that's how I want the linetype to look when they place it... so first click would have a circle, second click would have a circle, and the circles "in" the line would spread out evenly.

Just so you know... this is for guardrail inside a where house where it has the circle pillars on each end with circular pillars in the middle (every 8', but the spacing isn't crucial).

View 9 Replies View Related

AutoCAD Civil 3D :: Custom Linetype To Use In Visualization?

Jul 1, 2013

I am trying to create a linetype with a 3d shape included to represent road markings, i.e. central lines and edges etc.

For this I need a .shx file and I don't know how to create this as I am not allowed to select 3d objects when using the MKSHAPE command.

How can I best create a linetype with 3d objects?

View 9 Replies View Related

AutoCAD LT :: Custom Linetype That Includes A Shape

Dec 8, 2011

I need a custom linetype that includes a shape - a rectangle or a star.

How do I define this "shape" in my custom linetype?

View 2 Replies View Related

AutoCad 2D :: Custom Linetype All Elements Are Same Colour

Jun 21, 2011

I've been asked to produce a user defined linetype with a continuous line as its base and with a letter "X" at specific intervals. That's ok, but the kick is that the line should be one colour and the "X" in a different colour.

I suggested creating a block for the "X" and using measure to place the blocks on the line, but that is unacceptable. There will be a lot of lines and these will be at some point deleted/replaced and the "X" blocks would still be there. It would be possible to place all the "X"s for one line in a group so they could be deleted as a group, but in a relatively small drawing there will be several hundred of these lines and in a large drawing perhaps a couple of thousand.

As far as I'm aware in a custom linetype all the elements are the same colour.

View 8 Replies View Related

AutoCad 2D :: Curve Text In Custom Linetype?

Jan 8, 2013

I made a custom linetype to represent a pipeline. The line is abbreviated by 5 letters. My problem is when I reach and curve in the pipe (an elbow), the text string does not follow the curve. It remains straight for the remainder of the text. Is there a way (autocad 2013) to have the text follow the path of a curve?

edit: I saw one similar topic from 2008 in this thread: [URL] and the best response there is the one posted by eldon where you break the code down to each letter. Still, the picture in eldon's post makes the text a bit jagged. Have any changes been made to AutoCAD since this post that make this easier?

View 0 Replies View Related

AutoCad 2D :: Custom Linetype With Text Display?

Feb 18, 2011

I made a custom line type called EX (for existing pipes) which looks a little bit like this: - - - EX - - - EX - - - EX - - -

Line works great when I draw from left to right. However, when I draw a line from RIGHT to LEFT, the text displays upside down a little bit like this: - - - X3 - - - X3 - - - X3 - - - ("3" representing the mirror image of "E")

Same applies when drawing from bottom to top, or top to bottom. I totally understand the behavior here, and TBH I think it's OK it behaves that way.

Let's say I'm drawing existing water pipes going in all directions with a polyline. Is there a way to make the text display upward no matter what direction the pline is going?

View 9 Replies View Related

AutoCad 2D :: Create A Custom Linetype For A Drawing

May 28, 2013

I want to create a custom linetype for a drawing but am unsure of the best method to use. I only need this linetype for 1 drawing and so I would like it embedded in that drawing if possible. Other people may need access to this file so sending a custom file is out of the question.

Should I create a new .lin file or edit the default acad.lin?

I started to create one using Express Tools and when it prompted me to create / save a new .lin file it defaulted to the 'C:Program FilesAutodeskAutoCAD 2012 - English' folder. I was unsure if to save it here or 'C:Program FilesAutodeskAutoCAD 2012 - EnglishUserDataCacheSupport', where ACAD's .lin is stored.

View 3 Replies View Related

AutoCAD 2010 :: Custom Linetype - Circles On Ends

Mar 26, 2012

I'd like to make a custom linetype that is a the standard DASHDOT linetype, but with a small circle drawn on the ends of the line or arc (and only at the ends). 

View 4 Replies View Related

AutoCAD 2010 :: Custom Linetype With Solid Circles

Jul 24, 2013

I am trying to create a custom linetype with solid circles at a specified distance along the custom linetype (see attachment). I have tried using a shape, the special Wingding character but cannot get the result I want. I've tried the hatching method, again with no luck. I've went through the discussion groups, online content, etc. but cannot get it to generate the line the way I want. I see a few people that have been successful but I cannot get it to work.

View 9 Replies View Related

AutoCad 2D :: Rotated Text In Custom Linetype Won't Center

Apr 18, 2013

I've created my first line type (woohoo!) but the rotated V that I used as an "arrow" won't center and I'm having a difficult time understanding why so that I can fix it. I am aware that linetypes like the one I created exist but I wanted the arrows a specific size and distance apart which I couldn't do with the existing linetypes available to me (also I really wanted to try creating a custom one).

In the attached picture:

-the green line is the finished custom linetype

-the red lines are polylines

-the blue text is rotated 90 degrees, set to a text style titled Linetype (simplex font, not annotative, height set to 0 and width set to 1.0), and Justify set to Bottom Center

The finished linetype code is:


Also, this the first time I've attached a picture, I'm not sure that I did it correctly.

View 2 Replies View Related

AutoCad 2D :: Custom Linetype Doesn't Work As Expected

Apr 18, 2012

why these (apparenlty) different two linetype codes give me exactly the same line when I draw them.

*ELEC_NEWLITE_U,ELEC_NEWLIGHT_U ----(N)L----(N)L----(N)L----(N)L----

With the first one I intend to see few small dashes "(N)L" few small dashes an so on. With the second one I want to see one long dash "(N)L" long dash "(N)L" and so on.

They both appear as few small dashes (N)L few small dashes and so on

How do I control how many dashes will be in the line? What is the coding definition for the text portion of the line between []?

View 1 Replies View Related

AutoCAD Visual LISP / AutoLISP :: Prevent Dots On End Of Custom Linetype?

Sep 15, 2011

I have a custom linetype that's just a series of arrows I want to use to show the flow of a ditch. I've played around with this thing for a while and have these dots at each end of the line that shows up when I print.

Is there any way to make this linetype without the dots at each end? the actual files for the line type.


View 8 Replies View Related

AutoCAD Visual LISP / AutoLISP :: Getting Shapes In Custom Linetype To Reside In Drawing

Sep 17, 2013

I have a client who requested some complex custom linetypes. (line - shape - line)

I built the shapes and stored them in my ltype.shp file, and compiled that to ltype.shx. Then I added the custom linetypes in my acad.lin file. So everything works on my machine with no problem. However, when I send the drawing to someone else, the linetype works, but the shapes are left out. My guess is that since her ltype.shx file does not contain my new shapes, the lines are just drawn without them.

Is there a way that I can have those linetypes, complete with shapes, ride along inside/embedded the dwg file?

And before you ask, no, it's not an option to provide the client with the shx file that contains these shapes. I'm one of many different people in many different companies that might work on these drawings in the future and there's just no way that they'll be able to send an shx file along with the drawing every time someone new needs to work on it.

View 2 Replies View Related

AutoCAD .NET :: How To Code Drop-down List For Custom Property Using OPM

May 27, 2013

I am mainly developing for AutoCAD 2013/2014 how to implement a custom property as a drop-down list using OPM and .NET/C# wrapper. I have successfully created categorized custom properties already and can read/save them in XRecords via the OPM. I further implemented the members for IDynamicEnumProperty (using an ObjectARX DLL) in .NET/C# which are:

// ENUM-PROPERTY INTERFACE METHODS DEFINITIONenum myEnum{ steel = 0, copper, wood};public void GetNumPropertyValues( int numValues ){ numValues = 3;}public void GetPropValueName( int index, out String valueName ){ valueName = Enum.GetName(typeof(myEnum), index);}public void GetPropValueData( int index, ref Object valueName ){ valueName = index;}

And I have implemented the GetCurrentValueData() and SetCurrentValueData() members in my .NET/C# wrapper as per the IDynamicProperty2 interface as following:

public void GetCurrentValueData( Object pUnk, ref Object varData ) {AcadObject obj = pUnk as AcadObject; if ( obj != null ){using ( Active .Document.LockDocument( DocumentLockMode.ProtectedAutoWrite, null, null, true ) ){using ( var tr = Active.Transaction ){ObjectId ObjId = new ObjectId( (IntPtr) obj.ObjectID ); DBObject DbObj = tr.GetObject( ObjId, OpenMode.ForRead ); if ( DbObj != null ){try {if (

This code compiles without error but instead of the expected drop-down list the OPM only shows a field where I can enter or edit integer numbers, but there is no drop-down list when clicking on the field....

View 1 Replies View Related

Revit :: Create Custom Linetype?

Aug 31, 2011

I am trying to create a custom detail line, if possible?
Is there any way to create a custom detail line which will be a dashed line (similar to Hidden) as well as containing arrows every "X" feet or inches. i am attaching an image that is what i would like to create so i don't draw from scratch.
I would like for it to function as a line, spline, shape, whatever the needs may be.

View 9 Replies View Related

AutoCAD .NET :: Finding Out When Custom PaletteSet Is Closed Using Code Crash

Jul 3, 2012

I would like to do something when my paletteset is closed. I took the C# code from here


I modified the code to

Dim WithEvents ps As Autodesk.AutoCAD.Windows.PaletteSet <Autodesk.AutoCAD.Runtime.CommandMethod("psTest")> _ Public Sub PSTest() If ps Is Nothing Then ps = New Autodesk.AutoCAD.Windows.PaletteSet("psTest")


My code crashed. If I catch exception it is eInvalidInput exception. I don't know what to do as it is a simple code segment I don't know hot to fix it.

View 9 Replies View Related

AutoCAD Inventor :: ILogic Code - Change Custom Properties

May 31, 2013

<Subassembly document name>” = iProperties.Value("Custom", "CUSTOMER P.O. NUMBER") iProperties.ValueInDoc("<Subassembly document name>.iam", "Custom", "CUSTOMER P.O. NUMBER")= Ucase(InputBox("CUSTOMER P.O. NUMBER?", "Create Customer P.O.#", iProperties.Value("Custom", "CUSTOMER P.O. NUMBER")))

View 3 Replies View Related

AutoCAD Inventor :: VBA Code To Toggle Custom Button Image?

Jun 5, 2013

I have created some custom button in VBA. I wish I can make those buttons toggling their image.

For example my custom button toggles Part/Component priority or Highligt on/off and I would like the button image will change showing the current state.

The background image color change will work too, or the some extra tiny mark on working sceen would be useful if it quite complicated to deal with ribbons.

Generally I need to see the current state at glance.

View 1 Replies View Related

AutoCAD .NET :: Adding Custom Code In Reference Editing And RefEdit Command

Jun 6, 2012

how i can add .net code on reference editing and refedit command.

View 4 Replies View Related

AutoCAD Inventor :: Add Custom Button To Ribbon To Launch ILogic Code Using VB

Jan 16, 2013

I'm trying to find a way to add a custom button to my ribbon that will launch a global rule or form using VB. I know of a way using VBA but I want to get away from VBA. I'd much rather create an add with VB and use that.

I'm currently running IV 2012.

View 1 Replies View Related

AutoCAD Visual LISP / AutoLISP :: Running Code As Macro (custom Command In Ribbon)

Dec 23, 2011

So I can run the following code from the command line with no problem:

  (WRK-Insert_Standards_Block '("S:\AUTOCAD\_Common\Linetypes\CSW_Civil-Linetype"))
  (WRK-Insert_Standards_Block '("S:\AUTOCAD\_Common\Linetypes\CSW_Survey-Linetype"))
  (WRK-Layer_Insert_all "CSW-X-FM_Layers_List")

However when I put it into a macro (custom command to be used from the ribbon) it spits out the following in my command line:

(WRK-Insert_Standards_Block '("S:

View 2 Replies View Related

Edge Animate CC :: Defining Custom Easing In Code

Sep 4, 2013

Part of my project includes a slider that is dynamically given a position. Because this all happens in code, I can't use the timeline tool to change the easing to something like "easeOutBounce."
This seems to follow the jQuery convention but results in the standard easing:
sidebarSymbol.$("slider").animate({top: sidebarSymbol.sliderPositions[scene]}, 750, "easeOutBounce", sym.playNext());

View 3 Replies View Related

AutoCAD Inventor :: ILogic Code Part Iproperties To Custom Iproperties

Sep 19, 2013

I was looking for some iLogic Code for Inventor 2013 that would cycle through all the parts in an assembly grabbing the quantity of each part and setting it equal to the custom property "Qty" of each part.

Having a little trouble creating the for each loop and setting reference to each part without referencing each part by specific name.

View 6 Replies View Related

AutoCAD 2013 :: Copy Linetype Definition From Drawing To Linetype Definition File?

Nov 14, 2012

How can I copy a linetype definition from a drawing to the linetype definition file?

View 7 Replies View Related

AutoCAD Inventor :: Default (custom) Material For Custom Content Center Parts

Feb 21, 2013

When inserting a content center part for which we have to choose a material, we would like to have a custom material as a default (material with name: "No material selected"). So when selecting no material for this part (for example when the user forgets to select a specific material), the default material (in this case material "No material selected") will be active. In this way, we can see in one view across the BOM which parts have no material assigned yet.

How can this be achieved in the content center (editor)?

Product Design Suite 2014
Inventor 2014, Vault 2014
HP Workstation Z220
Intel Xeon 3.4GHz
Nvidia Quadro 4000
Windows 7 Professional (64bit)

View 2 Replies View Related

AutoCAD Inventor :: ILogic - Set Custom Property In Custom Content Center Part

May 16, 2013

When using Inventor with Vault, we have a problem when categorizing custom content center parts in Vault. In short, custom content center parts are incorrectly categorized as "Content Center" and automatically released - as there is no property that we can use to identify these files.

I need iLogic code to trigger when custom content center files are created/saved, wich adds the following custom iproperty "IsCustomContentCenter=True".

View 1 Replies View Related

AutoCAD LT :: Add Custom 2006 Buttons To 2012 Custom Ribbon And Panel?

Mar 12, 2012

I have been using AutoCAD 2006.  Our company is switching to AutoCAD 2012 LT.  I want to be able to add my custom toolbar buttons from the 2006 to the 2012 LT custom Ribbon Tabs & Panels.  I have figured out how to make the custom ribbon, tab and panel.  I just haven’t figured out what I need to do to get the old stuff to where I can add them to the panels.

I have custom 2006 buttons with and without flyouts. 

View 9 Replies View Related

AutoCad 2D :: Drag Previous Custom Command Into Existing Custom Tool Bar

Nov 27, 2013

When I drag a previous custom command into an existing custom tool bar and edit the custom command (then rename the command in the Name and Command Name) it also changes the previous custom command that I originally drug into the toolbar. What am I doing wrong?

View 2 Replies View Related

Copyrights 2005-15, All rights reserved