Define Symbol Linetype
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2004-09-19 03:49 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2004-09-23 04:33 PM
Make yourself a macro, I called mine linemacro. I just put a few lines in the 2D script so I had something to look at.
In your real object type
define symbol_line trialline linedash, linegap, linemacro parameters
!trialline is just a random name that I could use later
!linegap and linedash are parameters I put in the parameter window
!I didn't really have any parameters in linemacro so I left it blank, just
!treat it the same was as any called macro.
! remember to line_type
line_type trialline
!then draw your line, works like a charm
line2 0,0,a,0
Julia
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2004-09-24 09:49 AM
Thanks for the reply
I see the logic of your answer, but being unfamiliar with macros, I am still not sure what the lines of code in the macro ought to be. I want to create a 'bubble'-type line (i.e comprising an end-to-end connected series of arcs) that is specific to an GDL object that I am creating. The series of arcs would probbaly only need to conatin at most three arcs.
I don't want to use the 'bubble' line type because it may not be universally available, or the user may have modified it in some way.
Could I draw my arcs and create a GDL script and therafter convert that script to a Macro?
This is intriguing - could the symbol line macro include text?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2004-09-24 05:32 PM
If the line type is for use only within the library part, don't bother with the line type definition at all. It's primary purpose (as I see it) is to generate line types that can then be used in main program. The symbol line type functions are particularly quirky.
It is probably easier to just write the code as a loop:
FOR i = 1 TO line_length/(2*arc_radius)
add2 arc_radius, 0
ARC2 0, 0, arc_radius, 0, 180
add2 arc_radius, 0
NEXT i
This is probably over simplified, but I don't know your exact purpose so I'll let you worry out the details.
Another thing to keep in mind is that any attribute definitions that run inside library parts become added to the attributes of the main file. This can create some undesirable proliferation of fill types, materials, etc. But, it can also be a handy tool as well. I made some parts that I use to parametrically define brick, block and tile patterns. (I'll be making these available to everyone - but more on that later.)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2004-09-24 07:46 PM
Matthew wrote:The suspense is killing me...
(I'll be making these available to everyone - but more on that later.)

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2004-09-24 10:04 PM
Richard wrote:I guess I'll have to do it soon then.Matthew wrote:The suspense is killing me...
(I'll be making these available to everyone - but more on that later.)
What's the prognosis?
I'd hate to be responsible for the untimely demise of one of our own.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2004-09-25 12:20 AM
Cadsoup. eh?
Thanks for the suggestion on the lines - that is what I have done (or similar) in my script. I was rather hoping to make the line somewhat more 'universal', but I will stick with what I've got.
Of course, if it is possible to make symbol lines that contain text, I would be V. interested in developing a few of these, as we frequently use such lines in AutoCad.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2004-09-25 05:49 AM
MikeS wrote:Yup.
Cadsoup. eh?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2004-09-25 07:47 AM
A macro is no different than a normal object with maybe the exception of the subtype and unclicking the placeable box. However I have many objects that I use as macros that are usable objects in their own right. For instance I have a shower screen that is used as a macro in the shower object but can also be used by itself.
I tried putting text in but it didn't come though, which is a shame because people are always asking me if they can use text in line types and I just tell them they have to write the text with lines and circles which is a bit bothersome.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2005-12-05 12:27 PM
