Instruction making rant


RE: Instruction making rant
#68
(2020-06-02, 22:12)Roland Melkert Wrote:
Code:
0 STEP
0 !SOMENEWMETA FLOAT [target=engineBlock] [pos=100 100 100] [color=4] [ori=1 0 0 0 1 0 0 0 1]
........
0 STEP
0 !SOMENEWMETA FLOAT [target=engineBlock]

Where "engineBlock" is a group name.

The first float 'overrides' position, color and rotation. Just use the parameters which are needed all others initialize with the current values.

The second float uses all default parameters, so it returns the group to its original place, color and rotation.

And if the thing you are floating is a single, once used reference, you could also do something like:

0 !SOMENEWMETA FLOAT [targetKind=ldrRef] [target=3001.dat] [pos=100 100 100] [color=4] [ori=1 0 0 0 1 0 0 0 1]

This implies that if omitted the targetKind parameter defaults to "group"

my 2cts

Idea: Suppose you want to float a single instance of a multiple-used reference?

Perhaps it could be that if targetKind is omitted and target is not, then target is assumed to refer to a group name and the float command acts on that group. (Presumably a group ID could also be given, helpful if a group name is later changed.)

If targetKind and target are both omitted, then the float command acts on (and only on) the following type 1 line.

Alternatively (or additionally), there could be a targetKind value of "next" that would do the same thing.

And for targetKind=ldrRef, perhaps that could be assumed whenever the value of target ends with .ldr or .dat. What I'm getting at is that the targetKind parameter could often be omitted altogether, and its value determined by other context. That makes hand-editing a little quicker (and the targetKind parameter could always be auto-generated upon saving).


So in summary, what possible values for targetKind are there?
  • "group" (default if the value of target is a group name or ID)
  • "ldrRef" (default if the value of target ends with .ldr or .dat)—this acts on all instances of the specified part or submodel
  • "next" (default if target parameter is absent)—this acts on the following type 1 line only, and could also be extended to apply to path point or path cap metas if placed within a flexible content section
Others? Perhaps "step"—acting on any float-able objects up to the next STEP command? Indeed, this could conceivably replace ROTSTEP altogether. And if there are other LPub-type metas used, like callouts or sub-builds, they could also be positioned using float commands. (I know there's a difference between rotating the view and rotating the parts themselves, but perhaps the latter makes more sense for an editing tool anyway.)
Reply
« Next Oldest | Next Newest »



Messages In This Thread
Instruction making rant - by Daniel R - 2020-05-22, 23:30
RE: Instruction making rant - by Daniel R - 2020-05-24, 11:32
RE: Instruction making rant - by Daniel R - 2020-05-24, 12:05
RE: Instruction making rant - by Daniel R - 2020-05-27, 1:01
RE: Instruction making rant - by N. W. Perry - 2020-05-26, 16:53
RE: Instruction making rant - by N. W. Perry - 2020-05-26, 17:49
RE: Instruction making rant - by N. W. Perry - 2020-05-26, 21:03
RE: Instruction making rant - by Daniel R - 2020-05-27, 1:39
RE: Instruction making rant - by N. W. Perry - 2020-05-27, 22:18
RE: Instruction making rant - by Daniel R - 2020-05-27, 1:47
RE: Instruction making rant - by Daniel R - 2020-05-27, 1:33
RE: Instruction making rant - by Daniel R - 2020-05-27, 16:01
RE: Instruction making rant - by N. W. Perry - 2020-05-27, 16:22
RE: Instruction making rant - by Daniel R - 2020-05-27, 16:32
RE: Instruction making rant - by N. W. Perry - 2020-05-27, 16:55
RE: Instruction making rant - by Daniel R - 2020-05-27, 17:38
RE: Instruction making rant - by Daniel R - 2020-05-27, 20:20
RE: Instruction making rant - by N. W. Perry - 2020-05-27, 22:14
RE: Instruction making rant - by Daniel R - 2020-05-28, 13:43
RE: Instruction making rant - by N. W. Perry - 2020-05-28, 16:53
RE: Instruction making rant - by N. W. Perry - 2020-05-27, 22:37
RE: Instruction making rant - by N. W. Perry - 2020-05-28, 15:32
RE: Instruction making rant - by Daniel R - 2020-05-28, 15:53
RE: Instruction making rant - by N. W. Perry - 2020-05-28, 16:37
RE: Instruction making rant - by Daniel R - 2020-05-28, 16:47
RE: Instruction making rant - by N. W. Perry - 2020-05-28, 17:17
RE: Instruction making rant - by N. W. Perry - 2020-05-28, 14:45
RE: Instruction making rant - by Daniel R - 2020-05-31, 12:38
RE: Instruction making rant - by Daniel R - 2020-05-31, 13:51
RE: Instruction making rant - by N. W. Perry - 2020-05-31, 19:33
RE: Instruction making rant - by N. W. Perry - 2020-05-31, 19:21
RE: Instruction making rant - by N. W. Perry - 2020-05-31, 18:54
RE: Instruction making rant - by Daniel R - 2020-06-02, 21:26
RE: Instruction making rant - by Daniel R - 2020-06-02, 23:44
RE: Instruction making rant - by N. W. Perry - 2020-07-03, 15:22
RE: Instruction making rant - by Daniel R - 2020-05-27, 15:48
RE: Instruction making rant - by N. W. Perry - 2020-05-27, 16:20
RE: Instruction making rant - by Daniel R - 2020-05-27, 19:59
RE: Instruction making rant - by Daniel R - 2020-05-27, 19:58
RE: Instruction making rant - by Daniel R - 2020-05-27, 18:58

Forum Jump:


Users browsing this thread: 2 Guest(s)