Subscribe to this thread
Home - General / All posts - File > Create > New Drawing [and Table]
tjhb
10,094 post(s)
#25-Feb-17 22:31

Here's something I find unintuitive (step 3).

(1) New project

(2) File > Create... > New Drawing. All fields and options left as defaults.

I get a table called [Table] and a drawing named [Table Drawing] to display it.

Now I want a second drawing, showing data from the same table.

I try

(3) File > Create... > New Drawing. Name: 'Table Drawing 2', Table: 'Table'.

I get an error 'Can't add record'.

I think that's because Radian is trying to (re)create a table named [Table] (causing a collision with either the existing component name or with mfd_id values).

What I think the dialog should do here (because after all, it is called Create Drawing) is to detect a reference to an existing table, and just hook it up. That is, the same as by SQL

CREATE DRAWING [Table Drawing 2]

    (

    PROPERTY 'FieldGeom' 'Geom',

    PROPERTY 'Table' '[Table]'

    )

;

I think the dialog should only create a new table implicitly if it needs to.

Dimitri


7,413 post(s)
#26-Feb-17 11:13

Agreed.

adamw


10,447 post(s)
#27-Feb-17 11:45

We are planning to extend the New Xxx dialogs to allow creating components bound to existing components.

(I moved the thread from Cutting Edge to General.)

Manifold User Community Use Agreement Copyright (C) 2007-2021 Manifold Software Limited. All rights reserved.