CAD Modeling

Working with CAD models

53 Topics 180 Posts
  • 0 Votes
    2 Posts
    8 Views

    This behavior is by design for splines in Sim4Life. To extract points along a spline via the GUI, select the spline, then go to Wire Tools > To Polyline. This will allow you to specify a Faceting parameters that will determine how many points can be extracted.

    To extract points via the Python API, you can manually extract the points used to define the initial spline, or you can resample the spline:

    # -*- coding: utf-8 -*- import s4l_v1.model as model import XCoreModeling entity = model.AllEntities()['Spline Name'] # Get exact points making up spline points_exact = [] for p in entity.Parameters[0]: points_exact.append(p.Value) # Sample spline sample_interval = 100 wires = XCoreModeling.GetWires(entity) curve = wires[0].GetGeometry() curve.Transform(entity.Transform) interval = curve.ParameterRange length = XCoreModeling.MeasureLength([entity]) num_samples = int(length / sample_interval) param_delta = (interval.End - interval.Start) / num_samples points_sampled = [] for i in range(num_samples): points_sampled.append(curve.Eval(interval.Start + i * param_delta))
  • 3 Votes
    15 Posts
    1k Views

    Hello,

    Sorry I am facing an issue with moving antennas to different locations based on the steps above. I used three points on the skin and calculated the transformation between static and posed states. I used this transformation to transform the antenna position to the new position (using RigidTransform and ApplyTransform functions).

    However I get errors that the antenna source edge is within a solid. I have changed priorities during voxelling providing antennas higher priority but the errors still exist. What can I do? I would like to move antennas in a similar fashion to how soft tissues deform.

    Thanks
    Vignesh

  • How to export E-field to a custom grid?

    3
    0 Votes
    3 Posts
    125 Views

    Hi,

    Thank you. I tried it but would like to plot the fields on a grid between antennas (as shown in red in the image). It is easy when the model is static but when posed, I am not able to get a grid at an angle.

    Thanks

    image.png

  • 2 Votes
    1 Posts
    83 Views
    No one has replied
  • 0 Votes
    1 Posts
    80 Views
    No one has replied
  • Line fed slot antenna

    4
    0 Votes
    4 Posts
    148 Views

    Then you can keep the substrate as it is and translate the edge source (polyline) along the microstrip line until it also touches the ground plane (keeping it always axis-aligned).

  • 0 Votes
    5 Posts
    223 Views

    @MSJ the modify button is probably hidden on the top right, if you click the triangle where you see the three dots (...).

  • 0 Votes
    1 Posts
    101 Views
    No one has replied
  • 1 Votes
    1 Posts
    111 Views
    No one has replied
  • How to scale imported CAD model in 7.2?

    Unsolved
    4
    0 Votes
    4 Posts
    234 Views

    Yes, you cannot directly stretch a group. However, you can select multiple (non-group) entities and stretch them.
    The easiest is to press "Ctrl+A" (Select All), which will select all visible entities (excluding the groups), and then stretch those.

    You can also use the Python API.

    import XCoreMath import XCoreModeling Vec3 = XCoreModeling.Vec3 scaling0 = XCoreMath.Scaling(Vec3(2.0)) scaling1 = XCoreMath.Scaling(Vec3(1.2, 0.9, 2.0)) scaling2 = XCoreMath.Scaling(Vec3(1.2, 0.9, 2.0), origin=Vec3(120, 10, 34)) entities = XCoreModeling.GetActiveModel().SelectedEntities for e in entities: e.ApplyTransform(scaling0)

    the different scalings are

    uniform scaling non-uniform scaling non-uniform scaling wrt to the (non-zero) origin=(120, 10, 34)

    Youtube Video

  • Waveport error

    4
    0 Votes
    4 Posts
    255 Views

    Hi,

    How do you ensure they are in xy,yz or xz plane. Visually they are but I still face the error?

  • How to draw a capsule in Sim4Life?

    1
    1 Votes
    1 Posts
    131 Views
    No one has replied
  • Export spline points

    3
    0 Votes
    3 Posts
    224 Views

    That worked- thanks a lot!

  • Waveport - TEM mode

    3
    0 Votes
    3 Posts
    202 Views

    Hi,

    I decreased the max step of the dielectric material in the coaxial cable, but still got the same warning. I have two questions:

    Is there are formula which can be used to determine the cross-section? How does the warning affect the result?

    Thanks

  • Waveport guide error

    8
    0 Votes
    8 Posts
    309 Views

    Hi,

    I would like to power the two waveports with an input which is 180 degree phase apart between each other. The antennas are constructed in a differential manner to increase penetration. I am not sure how to provide the power input to the waveport guide

    Thanks

  • 1 Votes
    4 Posts
    245 Views

    Hi @bryn , thanks for looking into this. I can reproduce what you write. However, in my case it is a little different because I do press Enter and still it would not update. Unfortunately, I do not know how to reproduce this behaviour in a fresh project. I will hope that the solution to your bug will also fix the bug that I encounter, though.
    Thanks!

  • Evaluate distance along a (curved) line

    1
    1 Votes
    1 Posts
    148 Views
    No one has replied
  • I need to draw an ellipsoid

    2
    0 Votes
    2 Posts
    238 Views
  • Add antenna to body part

    3
    0 Votes
    3 Posts
    344 Views

    Hi Vignesh,

    Yes, "Surface Projection" tool should help you to place the antenna on a surface of a human body model.

  • move pallet missing in 7.0

    11
    1 Votes
    11 Posts
    591 Views

    Thanks a lot