[softwarelist] Re: Embedded objects in DDL files
- From: David Pilling <flist@xxxxxxxxxxxxxxxxxxx>
- To: davidpilling@xxxxxxxxxxxxx
- Date: Sun, 31 Dec 2006 17:08:51 +0000
In message <001801c72b6e$f6ce4a60$9601a8c0@PC01>, John Grogan
<johngrogan@xxxxxxxxxxxx> writes
This works fine but I would like to enhance the DDL file to contain embedded
lines. I was hoping that the following would work:
RULE_001={line
{thickness 2000}
{fcurve {path {move 0 0}{draw 100000 0}{end}}}
}
STORY_001={story
"TITLE"
{newpara}
{embed RULE_001}
{newpara}
{endoftext}
}
It won't work - you've discovered that. It can't work though. DDL works
by having a current context, a point in the document at which activity
takes place.
When you drop the above DDL into a text frame the point is set to the
text frame. So creating text there with the story command makes sense.
However what you do is create a line, the context then shifts to be that
line.
If you save a document with lines embedded in text stories the lines are
created, then the text frame, then the story.
I've long felt that DDL should be extended so that there are commands
that let you move to a point in a document, or apply new values to an
existing object.
--
David Pilling
email: david@xxxxxxxxxxxxxxxxxxx
web: http://www.davidpilling.net
post: David Pilling P.O. Box 22 Thornton Cleveleys Blackpool. FY5 1LR UK
fax: +44(0)870-0520-941
- Follow-Ups:
- [softwarelist] Re: Embedded objects in DDL files
- From: John Grogan
- References:
- [softwarelist] Embedded objects in DDL files
- From: John Grogan
Other related posts:
- » [softwarelist] Re: Embedded objects in DDL files
- » [softwarelist] Re: Embedded objects in DDL files
- » [softwarelist] Re: Embedded objects in DDL files
- » [softwarelist] Re: Embedded objects in DDL files
- » [softwarelist] Re: Embedded objects in DDL files
- » [softwarelist] Embedded objects in DDL files
- » [softwarelist] Re: Embedded objects in DDL files
- » [softwarelist] Re: Embedded objects in DDL files
This works fine but I would like to enhance the DDL file to contain embedded
lines. I was hoping that the following would work:
RULE_001={line
{thickness 2000}
{fcurve {path {move 0 0}{draw 100000 0}{end}}}
}
STORY_001={story
"TITLE"
{newpara}
{embed RULE_001}
{newpara}
{endoftext}
}
- [softwarelist] Re: Embedded objects in DDL files
- From: John Grogan
- [softwarelist] Embedded objects in DDL files
- From: John Grogan